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