From 1995016ea88c59dfa5fe8ac109c3474d17175c81 Mon Sep 17 00:00:00 2001 From: Paul Madden Date: Fri, 1 Nov 2024 23:55:12 +0000 Subject: [PATCH] Type fix --- src/uwtools/drivers/driver.py | 4 +--- src/uwtools/drivers/upp.py | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/uwtools/drivers/driver.py b/src/uwtools/drivers/driver.py index dfdf80d44..878e44e8b 100644 --- a/src/uwtools/drivers/driver.py +++ b/src/uwtools/drivers/driver.py @@ -33,8 +33,6 @@ from uwtools.utils.file import writable from uwtools.utils.processing import run_shell_cmd -OutputT = dict[str, Union[str, list[str]]] - # NB: Class docstrings are programmatically defined. @@ -433,7 +431,7 @@ def _run_via_local_execution(self): # Public methods @property - def output(self) -> OutputT: + def output(self) -> Union[dict[str, str], dict[str, list[str]]]: """ Returns a description of the file(s) created when this component runs. """ diff --git a/src/uwtools/drivers/upp.py b/src/uwtools/drivers/upp.py index be01b903f..b57ece118 100644 --- a/src/uwtools/drivers/upp.py +++ b/src/uwtools/drivers/upp.py @@ -7,7 +7,7 @@ from iotaa import asset, task, tasks from uwtools.config.formats.nml import NMLConfig -from uwtools.drivers.driver import DriverCycleLeadtimeBased, OutputT +from uwtools.drivers.driver import DriverCycleLeadtimeBased from uwtools.drivers.support import set_driver_docstring from uwtools.exceptions import UWConfigError from uwtools.strings import STR @@ -100,7 +100,7 @@ def driver_name(cls) -> str: return STR.upp @property - def output(self) -> OutputT: + def output(self) -> dict[str, list[str]]: """ Returns a description of the file(s) created when this component runs. """