Skip to content

Commit 5dc1ecb

Browse files
authored
fix typedef
1 parent 48c6e51 commit 5dc1ecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/draft2tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import shellescape
1515
from schema_salad.ref_resolver import file_uri, uri_file_path
1616
from schema_salad.sourceline import SourceLine, indent
17-
from typing import Any, Callable, cast, Generator, Text, Union, Dict
17+
from typing import Any, Callable, cast, Generator, Optional, Text, Union, Dict
1818

1919
from .builder import CONTENT_LIMIT, substitute, Builder
2020
from .pathmapper import adjustFileObjs, adjustDirObjs, visit_class
@@ -172,7 +172,7 @@ def __init__(self, toolpath_object, **kwargs):
172172
# type: (Dict[Text, Any], **Any) -> None
173173
super(CommandLineTool, self).__init__(toolpath_object, **kwargs)
174174

175-
def makeJobRunner(self, use_container=True): # type: () -> JobBase
175+
def makeJobRunner(self, use_container=True): # type: (Optional[bool]) -> JobBase
176176
dockerReq, _ = self.get_requirement("DockerRequirement")
177177
if dockerReq and use_container:
178178
return DockerCommandLineJob()

0 commit comments

Comments
 (0)