mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 05:45:37 +08:00
more type hints
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user