diff --git a/codicefiscale/data.py b/codicefiscale/data.py index 1436093..7ccd73c 100644 --- a/codicefiscale/data.py +++ b/codicefiscale/data.py @@ -31,9 +31,9 @@ def get_countries_data() -> Any: return deleted_countries + countries -def get_indexed_data() -> ( - dict[str, dict[str, list[dict[str, bool | datetime | str | list[str]]]]] -): +def get_indexed_data() -> dict[ + str, dict[str, list[dict[str, bool | datetime | str | list[str]]]] +]: municipalities = get_municipalities_data() countries = get_countries_data() data: dict[str, dict[str, list[dict[str, bool | datetime | str | list[str]]]]] = { diff --git a/scripts/updatedata.py b/scripts/updatedata.py index 4323c62..5d5760e 100644 --- a/scripts/updatedata.py +++ b/scripts/updatedata.py @@ -11,9 +11,9 @@ def _expect_keys(d: dict[str, Any], keys: list[str]) -> None: missing_keys = list(set(keys) - set(d.keys())) - assert ( - not missing_keys - ), f"Invalid keys, missing one or more expected keys {missing_keys}." + assert not missing_keys, ( + f"Invalid keys, missing one or more expected keys {missing_keys}." + ) def _slugify_names(*names: str) -> list[str]: