mypy
This commit is contained in:
parent
d3c1c0d31a
commit
a4b88ecf8b
|
@ -49,7 +49,7 @@ class ProcessModelService(FileSystemService):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def write_json_file(file_path, json_data, indent=4, sort_keys=True):
|
def write_json_file(file_path: str, json_data: dict, indent: int = 4, sort_keys: bool = True) -> None:
|
||||||
with open(file_path, "w") as h_open:
|
with open(file_path, "w") as h_open:
|
||||||
json.dump(json_data, h_open, indent=indent, sort_keys=sort_keys)
|
json.dump(json_data, h_open, indent=indent, sort_keys=sort_keys)
|
||||||
|
|
||||||
|
@ -306,6 +306,7 @@ class ProcessModelService(FileSystemService):
|
||||||
else:
|
else:
|
||||||
process_group_id = dir_path.replace(FileSystemService.root_path(), "")
|
process_group_id = dir_path.replace(FileSystemService.root_path(), "")
|
||||||
process_group = ProcessGroup(
|
process_group = ProcessGroup(
|
||||||
|
id='',
|
||||||
display_name=process_group_id,
|
display_name=process_group_id,
|
||||||
display_order=10000,
|
display_order=10000,
|
||||||
admin=False,
|
admin=False,
|
||||||
|
@ -367,6 +368,7 @@ class ProcessModelService(FileSystemService):
|
||||||
)
|
)
|
||||||
|
|
||||||
process_model_info = ProcessModelInfo(
|
process_model_info = ProcessModelInfo(
|
||||||
|
id='',
|
||||||
display_name=name,
|
display_name=name,
|
||||||
description="",
|
description="",
|
||||||
display_order=0,
|
display_order=0,
|
||||||
|
|
Loading…
Reference in New Issue