Skip to content

Commit fe5a3d8

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/reshape/merge.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -966,15 +966,13 @@ 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"
975973
elif (
976974
right_indexer is not None
977-
and mask_right.all() # type: ignore[union-attr]
975+
and (right_indexer == -1).all()
978976
):
979977
key_col = Index(lvals)
980978
result_dtype = lvals.dtype

0 commit comments

Comments
 (0)