Skip to content

Commit

Permalink
use older static typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Oct 23, 2024
1 parent d2cff18 commit d7ea4e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rook/utils/atlas_fixes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Union

import xarray as xr


Expand All @@ -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)
Expand Down

0 comments on commit d7ea4e5

Please sign in to comment.