File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -967,16 +967,11 @@ def _maybe_add_join_keys(
967
967
# if we have an all missing left_indexer
968
968
# make sure to just use the right values or vice-versa
969
969
mask_left = left_indexer == - 1
970
- mask_right = right_indexer == - 1
971
970
# error: Item "bool" of "Union[Any, bool]" has no attribute "all"
972
971
if mask_left .all (): # type: ignore[union-attr]
973
972
key_col = Index (rvals )
974
973
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 ():
980
975
key_col = Index (lvals )
981
976
result_dtype = lvals .dtype
982
977
else :
You can’t perform that action at this time.
0 commit comments