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(
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 :
You can’t perform that action at this time.
0 commit comments