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 3939 )
4040
4141try :
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 )
4545except 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 = [
You can’t perform that action at this time.
0 commit comments