@@ -3,6 +3,8 @@ from typing import Any
3
3
4
4
import numpy as np
5
5
6
+ from pandas ._typing import npt
7
+
6
8
class Infinity :
7
9
"""
8
10
Provide a positive Infinity comparison method for ranking.
@@ -30,7 +32,7 @@ class NegInfinity:
30
32
def unique_deltas (
31
33
arr : np .ndarray , # const int64_t[:]
32
34
) -> np .ndarray : ... # np.ndarray[np.int64, ndim=1]
33
- def is_lexsorted (list_of_arrays : list [np .ndarray ]) -> bool : ...
35
+ def is_lexsorted (list_of_arrays : list [npt . NDArray [ np .int64 ] ]) -> bool : ...
34
36
def groupsort_indexer (
35
37
index : np .ndarray , # const int64_t[:]
36
38
ngroups : int ,
@@ -146,18 +148,18 @@ def diff_2d(
146
148
axis : int ,
147
149
datetimelike : bool = ...,
148
150
) -> None : ...
149
- def ensure_platform_int (arr : object ) -> np .ndarray : ...
150
- def ensure_object (arr : object ) -> np .ndarray : ...
151
- def ensure_float64 (arr : object , copy = True ) -> np .ndarray : ...
152
- def ensure_float32 (arr : object , copy = True ) -> np .ndarray : ...
153
- def ensure_int8 (arr : object , copy = True ) -> np .ndarray : ...
154
- def ensure_int16 (arr : object , copy = True ) -> np .ndarray : ...
155
- def ensure_int32 (arr : object , copy = True ) -> np .ndarray : ...
156
- def ensure_int64 (arr : object , copy = True ) -> np .ndarray : ...
157
- def ensure_uint8 (arr : object , copy = True ) -> np .ndarray : ...
158
- def ensure_uint16 (arr : object , copy = True ) -> np .ndarray : ...
159
- def ensure_uint32 (arr : object , copy = True ) -> np .ndarray : ...
160
- def ensure_uint64 (arr : object , copy = True ) -> np .ndarray : ...
151
+ def ensure_platform_int (arr : object ) -> npt . NDArray [ np .intp ] : ...
152
+ def ensure_object (arr : object ) -> npt . NDArray [ np .object_ ] : ...
153
+ def ensure_float64 (arr : object , copy = True ) -> npt . NDArray [ np .float64 ] : ...
154
+ def ensure_float32 (arr : object , copy = True ) -> npt . NDArray [ np .float32 ] : ...
155
+ def ensure_int8 (arr : object , copy = True ) -> npt . NDArray [ np .int8 ] : ...
156
+ def ensure_int16 (arr : object , copy = True ) -> npt . NDArray [ np .int16 ] : ...
157
+ def ensure_int32 (arr : object , copy = True ) -> npt . NDArray [ np .int32 ] : ...
158
+ def ensure_int64 (arr : object , copy = True ) -> npt . NDArray [ np .int64 ] : ...
159
+ def ensure_uint8 (arr : object , copy = True ) -> npt . NDArray [ np .uint8 ] : ...
160
+ def ensure_uint16 (arr : object , copy = True ) -> npt . NDArray [ np .uint16 ] : ...
161
+ def ensure_uint32 (arr : object , copy = True ) -> npt . NDArray [ np .uint32 ] : ...
162
+ def ensure_uint64 (arr : object , copy = True ) -> npt . NDArray [ np .uint64 ] : ...
161
163
def take_1d_int8_int8 (
162
164
values : np .ndarray , indexer : np .ndarray , out : np .ndarray , fill_value = ...
163
165
) -> None : ...
0 commit comments