From d7ea4e50a479e746761db71122a9a00ed7a9a5aa Mon Sep 17 00:00:00 2001 From: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:34:01 -0400 Subject: [PATCH] use older static typing --- src/rook/utils/atlas_fixes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rook/utils/atlas_fixes.py b/src/rook/utils/atlas_fixes.py index d62c59d..a2ba1b4 100644 --- a/src/rook/utils/atlas_fixes.py +++ b/src/rook/utils/atlas_fixes.py @@ -1,3 +1,5 @@ +from typing import Union + import xarray as xr @@ -13,7 +15,7 @@ def add_project_id(ds_id, ds): return ds -def fix_deflation(ds: xr.Dataset | xr.DataArray): +def fix_deflation(ds: Union[xr.Dataset, xr.DataArray]): """See also: clisops.ops.base_operaton._remove_redundant_fill_values""" if isinstance(ds, xr.Dataset): var_list = list(ds.coords) + list(ds.data_vars)