@@ -30,10 +30,10 @@ i8max: int
30
30
u8max : int
31
31
32
32
def item_from_zerodim (val : object ) -> object : ...
33
- def infer_dtype (value : object , skipna : bool = True ) -> str : ...
33
+ def infer_dtype (value : object , skipna : bool = ... ) -> str : ...
34
34
def is_iterator (obj : object ) -> bool : ...
35
35
def is_scalar (val : object ) -> bool : ...
36
- def is_list_like (obj : object , allow_sets : bool = True ) -> bool : ...
36
+ def is_list_like (obj : object , allow_sets : bool = ... ) -> bool : ...
37
37
def is_period (val : object ) -> bool : ...
38
38
def is_interval (val : object ) -> bool : ...
39
39
def is_decimal (val : object ) -> bool : ...
@@ -45,22 +45,22 @@ def is_interval_array(values: np.ndarray) -> bool: ...
45
45
def is_datetime64_array (values : np .ndarray ) -> bool : ...
46
46
def is_timedelta_or_timedelta64_array (values : np .ndarray ) -> bool : ...
47
47
def is_datetime_with_singletz_array (values : np .ndarray ) -> bool : ...
48
- def is_time_array (values : np .ndarray , skipna : bool = False ): ...
49
- def is_date_array (values : np .ndarray , skipna : bool = False ): ...
50
- def is_datetime_array (values : np .ndarray , skipna : bool = False ): ...
51
- def is_string_array (values : np .ndarray , skipna : bool = False ): ...
52
- def is_float_array (values : np .ndarray , skipna : bool = False ): ...
53
- def is_integer_array (values : np .ndarray , skipna : bool = False ): ...
54
- def is_bool_array (values : np .ndarray , skipna : bool = False ): ...
55
- def fast_multiget (mapping : dict , keys : np .ndarray , default = np . nan ) -> np .ndarray : ...
56
- def fast_unique_multiple_list_gen (gen : Generator , sort : bool = True ) -> list : ...
57
- def fast_unique_multiple_list (lists : list , sort : bool = True ) -> list : ...
58
- def fast_unique_multiple (arrays : list , sort : bool = True ) -> list : ...
48
+ def is_time_array (values : np .ndarray , skipna : bool = ... ): ...
49
+ def is_date_array (values : np .ndarray , skipna : bool = ... ): ...
50
+ def is_datetime_array (values : np .ndarray , skipna : bool = ... ): ...
51
+ def is_string_array (values : np .ndarray , skipna : bool = ... ): ...
52
+ def is_float_array (values : np .ndarray , skipna : bool = ... ): ...
53
+ def is_integer_array (values : np .ndarray , skipna : bool = ... ): ...
54
+ def is_bool_array (values : np .ndarray , skipna : bool = ... ): ...
55
+ def fast_multiget (mapping : dict , keys : np .ndarray , default = ... ) -> np .ndarray : ...
56
+ def fast_unique_multiple_list_gen (gen : Generator , sort : bool = ... ) -> list : ...
57
+ def fast_unique_multiple_list (lists : list , sort : bool = ... ) -> list : ...
58
+ def fast_unique_multiple (arrays : list , sort : bool = ... ) -> list : ...
59
59
def map_infer (
60
60
arr : np .ndarray ,
61
61
f : Callable [[Any ], Any ],
62
- convert : bool = True ,
63
- ignore_na : bool = False ,
62
+ convert : bool = ... ,
63
+ ignore_na : bool = ... ,
64
64
) -> np .ndarray : ...
65
65
@overload # both convert_datetime and convert_to_nullable_integer False -> np.ndarray
66
66
def maybe_convert_objects (
@@ -131,27 +131,27 @@ def maybe_convert_objects(
131
131
def maybe_convert_numeric (
132
132
values : npt .NDArray [np .object_ ],
133
133
na_values : set ,
134
- convert_empty : bool = True ,
135
- coerce_numeric : bool = False ,
134
+ convert_empty : bool = ... ,
135
+ coerce_numeric : bool = ... ,
136
136
convert_to_masked_nullable : Literal [False ] = ...,
137
137
) -> tuple [np .ndarray , None ]: ...
138
138
@overload
139
139
def maybe_convert_numeric (
140
140
values : npt .NDArray [np .object_ ],
141
141
na_values : set ,
142
- convert_empty : bool = True ,
143
- coerce_numeric : bool = False ,
142
+ convert_empty : bool = ... ,
143
+ coerce_numeric : bool = ... ,
144
144
* ,
145
145
convert_to_masked_nullable : Literal [True ],
146
146
) -> tuple [np .ndarray , np .ndarray ]: ...
147
147
148
148
# TODO: restrict `arr`?
149
149
def ensure_string_array (
150
150
arr ,
151
- na_value : object = np . nan ,
152
- convert_na_value : bool = True ,
153
- copy : bool = True ,
154
- skipna : bool = True ,
151
+ na_value : object = ... ,
152
+ convert_na_value : bool = ... ,
153
+ copy : bool = ... ,
154
+ skipna : bool = ... ,
155
155
) -> npt .NDArray [np .object_ ]: ...
156
156
def infer_datetimelike_array (
157
157
arr : npt .NDArray [np .object_ ],
@@ -169,7 +169,7 @@ def tuples_to_object_array(
169
169
) -> ndarray_obj_2d : ...
170
170
171
171
# TODO: can we be more specific about rows?
172
- def to_object_array (rows : object , min_width : int = 0 ) -> ndarray_obj_2d : ...
172
+ def to_object_array (rows : object , min_width : int = ... ) -> ndarray_obj_2d : ...
173
173
def dicts_to_array (dicts : list , columns : list ) -> ndarray_obj_2d : ...
174
174
def maybe_booleans_to_slice (
175
175
mask : npt .NDArray [np .uint8 ],
@@ -214,8 +214,8 @@ def get_level_sorter(
214
214
def generate_bins_dt64 (
215
215
values : npt .NDArray [np .int64 ],
216
216
binner : np .ndarray , # const int64_t[:]
217
- closed : object = "left" ,
218
- hasnans : bool = False ,
217
+ closed : object = ... ,
218
+ hasnans : bool = ... ,
219
219
) -> np .ndarray : ... # np.ndarray[np.int64, ndim=1]
220
220
def array_equivalent_object (
221
221
left : np .ndarray , # object[:]
0 commit comments