Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa committed Nov 1, 2024
1 parent 291392a commit 1995016
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/uwtools/drivers/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down Expand Up @@ -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.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/uwtools/drivers/upp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
"""
Expand Down

0 comments on commit 1995016

Please sign in to comment.