Skip to content

Commit 533b738

Browse files
kapilkd13manu-chroma
authored andcommitted
fixing mypy error
1 parent db47719 commit 533b738

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cwltool/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self): # type: () -> None
6262
self.job_script_provider = None # type: Any
6363

6464
def build_job_script(self, commands):
65-
# type: (List[str]) -> Text
65+
# type: (Union[List[str],List[bytes]]) -> Text
6666
build_job_script_method = getattr(self.job_script_provider, "build_job_script", None) # type: Callable[[Builder, List[str]], Text]
6767
if build_job_script_method:
6868
return build_job_script_method(self, commands)

cwltool/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def run(self, pull_image=True, rm_container=True,
424424

425425

426426
def _job_popen(
427-
commands, # type: List[str]
427+
commands, # type: Union[List[str],List[bytes]]
428428
stdin_path, # type: Text
429429
stdout_path, # type: Text
430430
stderr_path, # type: Text

0 commit comments

Comments
 (0)