Skip to content

Commit 476205b

Browse files
committed
Some more type hints?
1 parent 21458b8 commit 476205b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cwltool/builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def __init__(self): # type: () -> None
5353
self.job_script_provider = None # type: Any
5454

5555
def build_job_script(self, commands):
56+
# type: (List[str]) -> Text
5657
build_job_script_method = getattr(self.job_script_provider, "build_job_script", None) # type: Callable[[Builder, List[str]], Text]
5758
if build_job_script_method:
5859
return build_job_script_method(self, commands)

cwltool/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def _execute(self, runtime, env, rm_tmpdir=True, move_outputs="move"):
192192

193193
commands = [Text(x).encode('utf-8') for x in runtime + self.command_line]
194194
job_script_contents = None # type: Text
195-
builder = getattr(self, "builder", None)
195+
builder = getattr(self, "builder", None) # type: Builder
196196
if builder is not None:
197197
job_script_contents = builder.build_job_script(commands)
198198
rcode = _job_popen(

0 commit comments

Comments
 (0)