Skip to content

Commit 37adadb

Browse files
authored
Fix types (#574)
1 parent 3bd61c0 commit 37adadb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cf_xarray/accessor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
)
4040

4141
try:
42-
from xarray.core.weighted import (
43-
Weighted, # type:ignore[import-not-found,no-redef,unused-ignore]
42+
from xarray.core.weighted import ( # type:ignore[import-not-found,no-redef,unused-ignore]
43+
Weighted,
4444
)
4545
except ImportError:
4646
from xarray.computation.weighted import ( # type:ignore[import-not-found,no-redef,unused-ignore]
@@ -1376,7 +1376,7 @@ def _get_all_cell_measures(self):
13761376

13771377
def curvefit(
13781378
self,
1379-
coords: Hashable | DataArray | Iterable[Hashable | DataArray],
1379+
coords: Hashable | Iterable[Hashable],
13801380
func: Callable[..., Any],
13811381
reduce_dims: Hashable | Iterable[Hashable] | None = None,
13821382
skipna: bool = True,
@@ -1386,8 +1386,8 @@ def curvefit(
13861386
kwargs: dict[str, Any] | None = None,
13871387
):
13881388
if coords is not None:
1389-
if isinstance(coords, Hashable | DataArray):
1390-
coords_iter: Iterable[Hashable | DataArray] = [coords]
1389+
if isinstance(coords, Hashable):
1390+
coords_iter: Iterable[Hashable] = [coords]
13911391
else:
13921392
coords_iter = coords
13931393
coords = [

0 commit comments

Comments
 (0)