more type hints

This commit is contained in:
Michael R. Crusoe
2026-04-15 15:16:36 +02:00
parent b7f83c8469
commit 67273472b5
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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
)
@@ -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},