Skip to content

Commit 92b465e

Browse files
authored
TYP: remove a mypy ignore from reshape/merge.py (#48133)
1 parent 56a7184 commit 92b465e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/core/reshape/merge.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -967,16 +967,11 @@ def _maybe_add_join_keys(
967967
# if we have an all missing left_indexer
968968
# make sure to just use the right values or vice-versa
969969
mask_left = left_indexer == -1
970-
mask_right = right_indexer == -1
971970
# error: Item "bool" of "Union[Any, bool]" has no attribute "all"
972971
if mask_left.all(): # type: ignore[union-attr]
973972
key_col = Index(rvals)
974973
result_dtype = rvals.dtype
975-
# error: Item "bool" of "Union[Any, bool]" has no attribute "all"
976-
elif (
977-
right_indexer is not None
978-
and mask_right.all() # type: ignore[union-attr]
979-
):
974+
elif right_indexer is not None and (right_indexer == -1).all():
980975
key_col = Index(lvals)
981976
result_dtype = lvals.dtype
982977
else:

0 commit comments

Comments
 (0)