@@ -3414,7 +3414,7 @@ def get_indexer(
3414
3414
limit : int | None = None ,
3415
3415
tolerance = None ,
3416
3416
) -> np .ndarray :
3417
-
3417
+ # returned ndarray is np.intp
3418
3418
method = missing .clean_reindex_fill_method (method )
3419
3419
target = ensure_index (target )
3420
3420
@@ -4099,7 +4099,10 @@ def _join_multi(self, other: Index, how: str_t):
4099
4099
return result
4100
4100
4101
4101
@final
4102
- def _join_non_unique (self , other , how = "left" ):
4102
+ def _join_non_unique (
4103
+ self , other : Index , how : str_t = "left"
4104
+ ) -> tuple [Index , np .ndarray , np .ndarray ]:
4105
+ # returned ndarrays are np.intp
4103
4106
from pandas .core .reshape .merge import get_join_indexers
4104
4107
4105
4108
# We only get here if dtypes match
@@ -4125,7 +4128,10 @@ def _join_non_unique(self, other, how="left"):
4125
4128
return join_index , left_idx , right_idx
4126
4129
4127
4130
@final
4128
- def _join_level (self , other , level , how = "left" , keep_order = True ):
4131
+ def _join_level (
4132
+ self , other : Index , level , how : str_t = "left" , keep_order : bool = True
4133
+ ) -> tuple [MultiIndex , np .ndarray | None , np .ndarray | None ]:
4134
+ # Any returned ndarrays are np.intp
4129
4135
"""
4130
4136
The join method *only* affects the level of the resulting
4131
4137
MultiIndex. Otherwise it just exactly aligns the Index data to the
0 commit comments