We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e2b580 commit 57e76c9Copy full SHA for 57e76c9
xarray/core/extension_array.py
@@ -192,7 +192,7 @@ def __extension_duck_array__where(
192
# pd.where won't broadcast 0-dim arrays across a scalar-like series; scalar y's must be preserved
193
if hasattr(y, "shape") and len(y.shape) == 1 and y.shape[0] == 1:
194
y = y[0] # type: ignore[index]
195
- return cast(T_ExtensionArray, pd.Series(x).where(condition, y).array) # type: ignore[call-overload]
+ return cast(T_ExtensionArray, pd.Series(x).where(condition, y).array) # type: ignore[arg-type]
196
197
198
def _replace_duck(args, replacer: Callable[[PandasExtensionArray], list]) -> list:
0 commit comments