@@ -107,6 +107,7 @@ from pandas._typing import (
107107 TimedeltaDtypeArg ,
108108 TimestampDtypeArg ,
109109 np_1darray ,
110+ np_1darray_intp ,
110111 np_ndarray ,
111112 np_ndarray_anyint ,
112113 np_ndarray_bool ,
@@ -453,15 +454,15 @@ class Index(IndexOpsMixin[S1], ElementOpsMixin[S1]):
453454 method : ReindexMethod | None = None ,
454455 limit : int | None = None ,
455456 tolerance : Scalar | AnyArrayLike | Sequence [Scalar ] | None = None ,
456- ) -> np_1darray [ np . intp ] : ...
457+ ) -> np_1darray_intp : ...
457458 def reindex (
458459 self ,
459460 target : Iterable [Any ],
460461 method : ReindexMethod | None = None ,
461462 level : int | None = None ,
462463 limit : int | None = None ,
463464 tolerance : Scalar | AnyArrayLike | Sequence [Scalar ] | None = None ,
464- ) -> tuple [Index , np_1darray [ np . intp ] | None ]: ...
465+ ) -> tuple [Index , np_1darray_intp | None ]: ...
465466 @overload
466467 def join (
467468 self ,
@@ -471,7 +472,7 @@ class Index(IndexOpsMixin[S1], ElementOpsMixin[S1]):
471472 level : Level | None = None ,
472473 return_indexers : Literal [True ],
473474 sort : bool = False ,
474- ) -> tuple [Index , np_1darray [ np . intp ] | None , np_1darray [ np . intp ] | None ]: ...
475+ ) -> tuple [Index , np_1darray_intp | None , np_1darray_intp | None ]: ...
475476 @overload
476477 def join (
477478 self ,
@@ -530,7 +531,7 @@ class Index(IndexOpsMixin[S1], ElementOpsMixin[S1]):
530531 ): ...
531532 @final
532533 def sort (self , * args : Any , ** kwargs : Any ) -> None : ...
533- def argsort (self , * args : Any , ** kwargs : Any ) -> np_1darray [ np . intp ] : ...
534+ def argsort (self , * args : Any , ** kwargs : Any ) -> np_1darray_intp : ...
534535 def get_indexer_non_unique (self , target ): ...
535536 @final
536537 def get_indexer_for (self , target , ** kwargs : Any ): ...
0 commit comments