Skip to content

Commit

Permalink
Some more type hints?
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jul 7, 2017
1 parent 21458b8 commit 476205b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cwltool/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(self): # type: () -> None
self.job_script_provider = None # type: Any

def build_job_script(self, commands):
# type: (List[str]) -> Text
build_job_script_method = getattr(self.job_script_provider, "build_job_script", None) # type: Callable[[Builder, List[str]], Text]
if build_job_script_method:
return build_job_script_method(self, commands)
Expand Down
2 changes: 1 addition & 1 deletion cwltool/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _execute(self, runtime, env, rm_tmpdir=True, move_outputs="move"):

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

0 comments on commit 476205b

Please sign in to comment.