Skip to content

Commit 02f3c85

Browse files
committed
mypy: Use Text keyword instead of unicode
1 parent edfb44d commit 02f3c85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cwltool/builder.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def __init__(self): # type: () -> None
6262
self.job_script_provider = None # type: Any
6363

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

cwltool/job.py

+1-1
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: Union[List[str],List[unicode]]
427+
commands, # type: List[Text]
428428
stdin_path, # type: Text
429429
stdout_path, # type: Text
430430
stderr_path, # type: Text

0 commit comments

Comments
 (0)