File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 39
39
)
40
40
41
41
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 ,
44
44
)
45
45
except ImportError :
46
46
from xarray .computation .weighted import ( # type:ignore[import-not-found,no-redef,unused-ignore]
@@ -1376,7 +1376,7 @@ def _get_all_cell_measures(self):
1376
1376
1377
1377
def curvefit (
1378
1378
self ,
1379
- coords : Hashable | DataArray | Iterable [Hashable | DataArray ],
1379
+ coords : Hashable | Iterable [Hashable ],
1380
1380
func : Callable [..., Any ],
1381
1381
reduce_dims : Hashable | Iterable [Hashable ] | None = None ,
1382
1382
skipna : bool = True ,
@@ -1386,8 +1386,8 @@ def curvefit(
1386
1386
kwargs : dict [str , Any ] | None = None ,
1387
1387
):
1388
1388
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 ]
1391
1391
else :
1392
1392
coords_iter = coords
1393
1393
coords = [
You can’t perform that action at this time.
0 commit comments