@@ -1301,13 +1301,7 @@ def _maybe_coerce_merge_keys(self) -> None:
1301
1301
# "Union[dtype[Any], Type[Any], _SupportsDType[dtype[Any]]]"
1302
1302
casted = lk .astype (rk .dtype ) # type: ignore[arg-type]
1303
1303
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 )
1311
1305
match = lk == casted
1312
1306
# error: Item "ExtensionArray" of "Union[ExtensionArray,
1313
1307
# ndarray[Any, Any], Any]" has no attribute "all"
@@ -1329,13 +1323,7 @@ def _maybe_coerce_merge_keys(self) -> None:
1329
1323
# "Union[dtype[Any], Type[Any], _SupportsDType[dtype[Any]]]"
1330
1324
casted = rk .astype (lk .dtype ) # type: ignore[arg-type]
1331
1325
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 )
1339
1327
match = rk == casted
1340
1328
# error: Item "ExtensionArray" of "Union[ExtensionArray,
1341
1329
# ndarray[Any, Any], Any]" has no attribute "all"
0 commit comments