mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Some more type fixes
This commit is contained in:
@@ -684,7 +684,7 @@ class RemoteToolEvaluator(ToolEvaluator):
|
||||
def __init__(self, app, tool, job, local_working_directory, job_io: JobIO):
|
||||
super().__init__(app, tool, job, local_working_directory)
|
||||
self.job_io = job_io
|
||||
self._compute_environment = None
|
||||
self._compute_environment: Optional[SharedComputeEnvironment] = None
|
||||
|
||||
@property
|
||||
def compute_environment(self):
|
||||
|
||||
@@ -179,10 +179,10 @@ class MetadataTestCase(unittest.TestCase, tools_support.UsesTools):
|
||||
def _write_job_files(self, stdout="tool stdout", stderr="tool stderr"):
|
||||
with open(os.path.join(self.job_working_directory, "tool_script.sh"), 'w') as f:
|
||||
f.write("echo hi")
|
||||
with open(os.path.join(self.job_working_directory, "tool_stdout"), "wb") as f:
|
||||
f.write(stdout.encode("utf-8"))
|
||||
with open(os.path.join(self.job_working_directory, "tool_stderr"), "wb") as f:
|
||||
f.write(stderr.encode("utf-8"))
|
||||
with open(os.path.join(self.job_working_directory, "tool_stdout"), "w") as f:
|
||||
f.write(stdout)
|
||||
with open(os.path.join(self.job_working_directory, "tool_stderr"), "w") as f:
|
||||
f.write(stderr)
|
||||
|
||||
def metadata_command(self, output_datasets, output_collections=None):
|
||||
output_collections = output_collections or {}
|
||||
|
||||
Reference in New Issue
Block a user