From 71f18c8306d81396d84ecf0adbd3059d1448b5ac Mon Sep 17 00:00:00 2001 From: jasquat Date: Mon, 25 Jul 2022 15:17:04 -0400 Subject: [PATCH] more precommit and mypy --- src/spiffworkflow_backend/models/task.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/spiffworkflow_backend/models/task.py b/src/spiffworkflow_backend/models/task.py index 2035312c..1384f8f5 100644 --- a/src/spiffworkflow_backend/models/task.py +++ b/src/spiffworkflow_backend/models/task.py @@ -1,6 +1,7 @@ """Task.""" import enum -from typing import Any, Union +from typing import Any +from typing import Union import marshmallow from marshmallow import Schema @@ -104,7 +105,7 @@ class Task: lane: Union[str, None] = None, form: None = None, documentation: str = "", - data: dict[str, Any] | None = None, + data: Union[dict[str, Any], None] = None, multi_instance_type: Union[MultiInstanceType, None] = None, multi_instance_count: str = "", multi_instance_index: str = "",