Fix type hints in the console command test case.
This commit is contained in:
1 parent
d62e295dc6
commit
1289d7cba6
1 file changed
+2
-2
@@ -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