mypy
This commit is contained in:
parent
35e26e89fa
commit
e4ee481a00
|
@ -25,7 +25,7 @@ class GitService:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_instance_file_contents_for_revision(
|
def get_instance_file_contents_for_revision(
|
||||||
process_model: ProcessModelInfo, revision: str
|
process_model: ProcessModelInfo, revision: str
|
||||||
) -> str:
|
) -> bytes:
|
||||||
"""Get_instance_file_contents_for_revision."""
|
"""Get_instance_file_contents_for_revision."""
|
||||||
bpmn_spec_absolute_dir = current_app.config["BPMN_SPEC_ABSOLUTE_DIR"]
|
bpmn_spec_absolute_dir = current_app.config["BPMN_SPEC_ABSOLUTE_DIR"]
|
||||||
process_model_relative_path = FileSystemService.process_model_relative_path(
|
process_model_relative_path = FileSystemService.process_model_relative_path(
|
||||||
|
@ -37,4 +37,4 @@ class GitService:
|
||||||
# git show 78ae5eb:category_number_one/script-task/script-task.bpmn
|
# git show 78ae5eb:category_number_one/script-task/script-task.bpmn
|
||||||
file_contents: str = os.popen(shell_command).read()[:-1] # noqa: S605
|
file_contents: str = os.popen(shell_command).read()[:-1] # noqa: S605
|
||||||
assert file_contents # noqa: S101
|
assert file_contents # noqa: S101
|
||||||
return file_contents
|
return file_contents.encode('utf-8')
|
||||||
|
|
Loading…
Reference in New Issue