Fix type hints in the console command test case.
This commit is contained in:
@@ -93,7 +93,7 @@ class ConsoleCommandTestCase(unittest.TestCase):
|
||||
|
||||
with open(data_dir / "base_accounts.csv") as fp:
|
||||
rows: list[dict[str, str]] = list(csv.DictReader(fp))
|
||||
data: dict[dict[str, Any]] \
|
||||
data: dict[str, dict[str, Any]] \
|
||||
= {x["code"]: {"code": x["code"],
|
||||
"title": x["title"],
|
||||
"l10n": {y[5:]: x[y]
|
||||
@@ -167,7 +167,7 @@ class ConsoleCommandTestCase(unittest.TestCase):
|
||||
from accounting.models import Currency
|
||||
|
||||
with open(data_dir / "currencies.csv") as fp:
|
||||
data: dict[dict[str, Any]] \
|
||||
data: dict[str, dict[str, Any]] \
|
||||
= {x["code"]: {"code": x["code"],
|
||||
"name": x["name"],
|
||||
"l10n": {y[5:]: x[y]
|
||||
|
||||
Reference in New Issue
Block a user