From 1289d7cba619fb237a9086e53031f824485bddcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 11 Jan 2026 11:58:27 +0800 Subject: [PATCH] Fix type hints in the console command test case. --- tests/test_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index 0ea8601..7b1c4c7 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -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]