Skip to content

Commit afa2251

Browse files
committed
chore: fix mypy issues
1 parent 9003418 commit afa2251

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/__init__.py

Whitespace-only changes.

scripts/sms_pricing/__init__.py

Whitespace-only changes.

scripts/sms_pricing/international_billing_rates_updater.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
import re
44
import unicodedata
55
from collections import defaultdict
6+
from collections.abc import Sequence
67
from dataclasses import dataclass
78
from pathlib import Path
89

910
import yaml
1011

11-
REPO_ROOT = Path(__file__).resolve().parents[1]
12+
REPO_ROOT = Path(__file__).resolve().parents[2]
1213
DEFAULT_ALLOW_LIST_PATH = REPO_ROOT / "scripts/sms_pricing/country_list.txt"
1314
DEFAULT_PRICES_PATH = REPO_ROOT / "scripts/sms_pricing/aws_prices_sms.csv"
1415
DEFAULT_PREFIX_FEATURES_PATH = REPO_ROOT / "scripts/sms_pricing/country_prefixes.csv"
@@ -67,7 +68,7 @@ def load_allowed_countries(allow_list_path: Path) -> list[str]:
6768
return countries
6869

6970

70-
def _get_csv_column_name(fieldnames: list[str], supported_names: tuple[str, ...], label: str) -> str:
71+
def _get_csv_column_name(fieldnames: Sequence[str], supported_names: tuple[str, ...], label: str) -> str:
7172
normalized_to_original = {_normalize_name(name): name for name in fieldnames}
7273
for supported_name in supported_names:
7374
normalized_supported = _normalize_name(supported_name)

0 commit comments

Comments
 (0)