From 67273472b513d22319bab82a10876f146d814021 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Fri, 6 Mar 2026 10:27:31 +0100 Subject: [PATCH] more type hints --- test/functional/test_toolbox_pytest.py | 1 + test/functional/tools/parameters/gx_drill_down_code.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/functional/test_toolbox_pytest.py b/test/functional/test_toolbox_pytest.py index ad52fdecf41..bb070159810 100644 --- a/test/functional/test_toolbox_pytest.py +++ b/test/functional/test_toolbox_pytest.py @@ -76,6 +76,7 @@ class TestFrameworkTools(ApiTestCase, ConfiguresDatabaseVault): use_legacy_api = os.environ.get("GALAXY_TEST_USE_LEGACY_TOOL_API", DEFAULT_USE_LEGACY_API) assert use_legacy_api in get_args(UseLegacyApiT) cast(UseLegacyApiT, use_legacy_api) # https://github.com/python/mypy/issues/15106 + assert self._test_driver self._test_driver.run_tool_test( testcase.tool_id, testcase.test_index, tool_version=testcase.tool_version, use_legacy_api=use_legacy_api ) diff --git a/test/functional/tools/parameters/gx_drill_down_code.py b/test/functional/tools/parameters/gx_drill_down_code.py index d587fbd58af..cb1691a5541 100644 --- a/test/functional/tools/parameters/gx_drill_down_code.py +++ b/test/functional/tools/parameters/gx_drill_down_code.py @@ -1,8 +1,8 @@ def collate_table(path: str) -> list: with open(path) as f: contents = f.read() - first_options = [] - second_options = [] + first_options: list[dict[str, str | bool | list[str]]] = [] + second_options: list[dict[str, str | bool | list[str]]] = [] values = [ {"name": "First Column", "value": "first", "selected": False, "options": first_options}, {"name": "Second Column", "value": "second", "selected": False, "options": second_options},