Skip to content

Commit f72e51f

Browse files
committed
TYP: remove a mypy ignore from reshape/merge.py
1 parent 3512e24 commit f72e51f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/core/reshape/merge.py

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

0 commit comments

Comments
 (0)