From a4b88ecf8b5725e41c41446de1a62c893a48752e Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Fri, 18 Nov 2022 15:39:51 -0500 Subject: [PATCH] mypy --- .../spiffworkflow_backend/services/process_model_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_model_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_model_service.py index ccdf56b1..7715b5ec 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_model_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_model_service.py @@ -49,7 +49,7 @@ class ProcessModelService(FileSystemService): return False @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: json.dump(json_data, h_open, indent=indent, sort_keys=sort_keys) @@ -306,6 +306,7 @@ class ProcessModelService(FileSystemService): else: process_group_id = dir_path.replace(FileSystemService.root_path(), "") process_group = ProcessGroup( + id='', display_name=process_group_id, display_order=10000, admin=False, @@ -367,6 +368,7 @@ class ProcessModelService(FileSystemService): ) process_model_info = ProcessModelInfo( + id='', display_name=name, description="", display_order=0,