@@ -1301,13 +1301,7 @@ def _maybe_coerce_merge_keys(self) -> None:
13011301 # "Union[dtype[Any], Type[Any], _SupportsDType[dtype[Any]]]"
13021302 casted = lk .astype (rk .dtype ) # type: ignore[arg-type]
13031303
1304- # Argument 1 to "__call__" of "_UFunc_Nin1_Nout1" has
1305- # incompatible type "Union[ExtensionArray, ndarray[Any, Any],
1306- # Index, Series]"; expected "Union[_SupportsArray[dtype[Any]],
1307- # _NestedSequence[_SupportsArray[dtype[Any]]], bool, int,
1308- # float, complex, str, bytes, _NestedSequence[Union[bool,
1309- # int, float, complex, str, bytes]]]"
1310- mask = ~ np .isnan (lk ) # type: ignore[arg-type]
1304+ mask = ~ np .isnan (lk )
13111305 match = lk == casted
13121306 # error: Item "ExtensionArray" of "Union[ExtensionArray,
13131307 # ndarray[Any, Any], Any]" has no attribute "all"
@@ -1329,13 +1323,7 @@ def _maybe_coerce_merge_keys(self) -> None:
13291323 # "Union[dtype[Any], Type[Any], _SupportsDType[dtype[Any]]]"
13301324 casted = rk .astype (lk .dtype ) # type: ignore[arg-type]
13311325
1332- # Argument 1 to "__call__" of "_UFunc_Nin1_Nout1" has
1333- # incompatible type "Union[ExtensionArray, ndarray[Any, Any],
1334- # Index, Series]"; expected "Union[_SupportsArray[dtype[Any]],
1335- # _NestedSequence[_SupportsArray[dtype[Any]]], bool, int,
1336- # float, complex, str, bytes, _NestedSequence[Union[bool,
1337- # int, float, complex, str, bytes]]]"
1338- mask = ~ np .isnan (rk ) # type: ignore[arg-type]
1326+ mask = ~ np .isnan (rk )
13391327 match = rk == casted
13401328 # error: Item "ExtensionArray" of "Union[ExtensionArray,
13411329 # ndarray[Any, Any], Any]" has no attribute "all"
0 commit comments