Skip to content

Commit

Permalink
chore: Use Python 3.8 compliant type expression in cast
Browse files Browse the repository at this point in the history
  • Loading branch information
mdomke committed May 10, 2024
1 parent 6c1188e commit 59fe43f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schwifty/bban.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from random import Random
from typing import Any
from typing import cast
from typing import Dict

from rstr import Rstr

Expand Down Expand Up @@ -170,7 +171,7 @@ def random(cls, country_code: str = "", random: Random | None = None, **values:
if random is None:
random = Random() # noqa: S311

banks_by_country = cast(dict[str, Any], registry.get("country"))
banks_by_country = cast(Dict[str, Any], registry.get("country"))
if not country_code:
country_code = random.choice(list(banks_by_country.keys()))

Expand Down

0 comments on commit 59fe43f

Please sign in to comment.