Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 27, 2025
1 parent 4d25ffb commit a19b7db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions codicefiscale/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]]]] = {
Expand Down
6 changes: 3 additions & 3 deletions scripts/updatedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit a19b7db

Please sign in to comment.