Skip to content

Commit 57e76c9

Browse files
committed
fix: mypy?
1 parent 6e2b580 commit 57e76c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/extension_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def __extension_duck_array__where(
192192
# pd.where won't broadcast 0-dim arrays across a scalar-like series; scalar y's must be preserved
193193
if hasattr(y, "shape") and len(y.shape) == 1 and y.shape[0] == 1:
194194
y = y[0] # type: ignore[index]
195-
return cast(T_ExtensionArray, pd.Series(x).where(condition, y).array) # type: ignore[call-overload]
195+
return cast(T_ExtensionArray, pd.Series(x).where(condition, y).array) # type: ignore[arg-type]
196196

197197

198198
def _replace_duck(args, replacer: Callable[[PandasExtensionArray], list]) -> list:

0 commit comments

Comments
 (0)