Skip to content

Commit a3a57a8

Browse files
committed
needed until there is a new release of galaxy-tool-util with updated types
1 parent 62b6896 commit a3a57a8

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

cwltool/software_requirements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def get_container_from_software_requirements(
151151
[DOCKER_CONTAINER_TYPE], tool_info
152152
)
153153
if container_description:
154-
return container_description.identifier
154+
return cast(Optional[str], container_description.identifier)
155155

156156
return None
157157

mypy.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ ignore_errors = True
1414

1515
[mypy-past.builtins.*]
1616
ignore_missing_imports = True
17+
18+
[mypy-galaxy.tool_util.*]
19+
ignore_missing_imports = True
20+
21+
[mypy-cwltool.software_requirements]
22+
warn_unused_ignores= False

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ pytest-cov
77
arcp >= 0.2.0
88
rdflib-jsonld>=0.4.0, <= 0.6.1;python_version<='3.6'
99
-rrequirements.txt
10+
galaxy-tool-util >= 21.1.0

tests/test_dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
deps = None # type: Optional[ModuleType]
1313
try:
14-
from galaxy.tool_util import deps
14+
from galaxy.tool_util import deps # type: ignore[no-redef]
1515
except ImportError:
1616
pass
1717

0 commit comments

Comments
 (0)