From 587a9efd143bbc32fc6aaf4c1fae3ccb4cc947f5 Mon Sep 17 00:00:00 2001 From: why-not-try-calmer Date: Mon, 4 Sep 2023 09:20:37 +0200 Subject: [PATCH] formatter --- docker-qgis/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-qgis/utils.py b/docker-qgis/utils.py index 95ba03844..b8d2a4171 100644 --- a/docker-qgis/utils.py +++ b/docker-qgis/utils.py @@ -15,7 +15,7 @@ from contextlib import contextmanager from datetime import datetime from pathlib import Path -from typing import Any, Callable, IO, Optional +from typing import IO, Any, Callable, Optional from libqfieldsync.layer import LayerSource from qfieldcloud_sdk import sdk @@ -513,7 +513,7 @@ def json_default(obj): def run_workflow( workflow: Workflow, - feedback_filename: Path | IO, + feedback_filename: Optional[Path | IO], ) -> dict[str, Any]: """Executes the steps required to run a task and return structured feedback from the execution @@ -525,7 +525,7 @@ def run_workflow( Args: workflow (Workflow): workflow to be executed - feedback_filename (Optional[Union[IO, Path]]): write feedback to an IO device, to Path filename, or don't write it + feedback_filename (IO | Path): write feedback to an IO device, to Path filename, or don't write it """ feedback: dict[str, Any] = { "feedback_version": "2.0",