@@ -5,7 +5,6 @@ from collections.abc import (
5
5
)
6
6
from contextlib import contextmanager
7
7
from typing import (
8
- Any ,
9
8
Literal ,
10
9
overload ,
11
10
)
@@ -36,29 +35,29 @@ from pandas._typing import (
36
35
def assert_almost_equal (
37
36
left : T ,
38
37
right : T ,
39
- check_dtype : bool | Literal ["equiv" ] = ... ,
40
- rtol : float = ... ,
41
- atol : float = ... ,
38
+ check_dtype : bool | Literal ["equiv" ] = "equiv" ,
39
+ rtol : float = 1e-5 ,
40
+ atol : float = 1e-8 ,
42
41
** kwargs ,
43
42
) -> None : ...
44
- def assert_dict_equal (left : dict , right : dict , compare_keys : bool = ... ) -> None : ...
43
+ def assert_dict_equal (left : dict , right : dict , compare_keys : bool = True ) -> None : ...
45
44
def assert_index_equal (
46
45
left : Index ,
47
46
right : Index ,
48
- exact : bool | Literal ["equiv" ] = ... ,
49
- check_names : bool = ... ,
50
- check_exact : bool = ... ,
51
- check_categorical : bool = ... ,
52
- check_order : bool = ... ,
53
- rtol : float = ... ,
54
- atol : float = ... ,
55
- obj : str = ... ,
47
+ exact : bool | Literal ["equiv" ] = "equiv" ,
48
+ check_names : bool = True ,
49
+ check_exact : bool = True ,
50
+ check_categorical : bool = True ,
51
+ check_order : bool = True ,
52
+ rtol : float = 1e-5 ,
53
+ atol : float = 1e-8 ,
54
+ obj : str = "Index" ,
56
55
) -> None : ...
57
56
def assert_class_equal (
58
- left : T , right : T , exact : bool | Literal ["equiv" ] = ... , obj : str = ...
57
+ left : T , right : T , exact : bool | Literal ["equiv" ] = True , obj : str = "Input"
59
58
) -> None : ...
60
59
def assert_attr_equal (
61
- attr : str , left : object , right : object , obj : str = ...
60
+ attr : str , left : object , right : object , obj : str = "Attributes"
62
61
) -> None : ...
63
62
def assert_is_valid_plot_return_object (
64
63
objs : Series | np .ndarray | Artist | tuple | dict ,
@@ -67,44 +66,50 @@ def assert_is_sorted(seq: AnyArrayLike) -> None: ...
67
66
def assert_categorical_equal (
68
67
left : Categorical ,
69
68
right : Categorical ,
70
- check_dtype : bool = ... ,
71
- check_category_order : bool = ... ,
72
- obj : str = ... ,
69
+ check_dtype : bool = True ,
70
+ check_category_order : bool = True ,
71
+ obj : str = "Categorical" ,
73
72
) -> None : ...
74
73
def assert_interval_array_equal (
75
74
left : IntervalArray ,
76
75
right : IntervalArray ,
77
- exact : bool | Literal ["equiv" ] = ... ,
78
- obj : str = ... ,
76
+ exact : bool | Literal ["equiv" ] = "equiv" ,
77
+ obj : str = "IntervalArray" ,
79
78
) -> None : ...
80
79
def assert_period_array_equal (
81
- left : PeriodArray , right : PeriodArray , obj : str = ...
80
+ left : PeriodArray , right : PeriodArray , obj : str = "PeriodArray"
82
81
) -> None : ...
83
82
def assert_datetime_array_equal (
84
- left : DatetimeArray , right : DatetimeArray , check_freq : bool = ...
83
+ left : DatetimeArray ,
84
+ right : DatetimeArray ,
85
+ obj : str = "DatetimeArray" ,
86
+ check_freq : bool = True ,
85
87
) -> None : ...
86
88
def assert_timedelta_array_equal (
87
- left : TimedeltaArray , right : TimedeltaArray , check_freq : bool = ...
89
+ left : TimedeltaArray ,
90
+ right : TimedeltaArray ,
91
+ obj : str = "TimedeltaArray" ,
92
+ check_freq : bool = True ,
88
93
) -> None : ...
89
94
def assert_numpy_array_equal (
90
95
left ,
91
96
right ,
92
- strict_nan : bool = ... ,
93
- check_dtype : bool | Literal ["equiv" ] = ... ,
94
- err_msg : str | None = ... ,
95
- check_same : Literal ["copy" , "same" ] | None = ... ,
96
- obj : str = ... ,
97
- index_values : Index | np .ndarray | None = ... ,
97
+ strict_nan : bool = False ,
98
+ check_dtype : bool | Literal ["equiv" ] = True ,
99
+ err_msg : str | None = None ,
100
+ check_same : Literal ["copy" , "same" ] | None = None ,
101
+ obj : str = "numpy array" ,
102
+ index_values : Index | np .ndarray | None = None ,
98
103
) -> None : ...
99
104
def assert_extension_array_equal (
100
105
left : ExtensionArray ,
101
106
right : ExtensionArray ,
102
- check_dtype : bool | Literal ["equiv" ] = ... ,
103
- index_values : Index | np .ndarray | None = ... ,
104
- check_exact : bool = ... ,
105
- rtol : float = ... ,
106
- atol : float = ... ,
107
- obj : str = ... ,
107
+ check_dtype : bool | Literal ["equiv" ] = True ,
108
+ index_values : Index | np .ndarray | None = None ,
109
+ check_exact : bool = False ,
110
+ rtol : float = 1e-5 ,
111
+ atol : float = 1e-8 ,
112
+ obj : str = "ExtensionArray" ,
108
113
) -> None : ...
109
114
@overload
110
115
def assert_series_equal (
@@ -151,21 +156,21 @@ def assert_series_equal(
151
156
def assert_frame_equal (
152
157
left : DataFrame ,
153
158
right : DataFrame ,
154
- check_dtype : bool | Literal ["equiv" ] = ... ,
155
- check_index_type : bool | Literal ["equiv" ] = ... ,
156
- check_column_type : bool | Literal ["equiv" ] = ... ,
157
- check_frame_type : bool = ... ,
158
- check_names : bool = ... ,
159
- by_blocks : bool = ... ,
160
- check_exact : bool = ... ,
161
- check_datetimelike_compat : bool = ... ,
162
- check_categorical : bool = ... ,
163
- check_like : bool = ... ,
164
- check_freq : bool = ... ,
165
- check_flags : bool = ... ,
166
- rtol : float = ... ,
167
- atol : float = ... ,
168
- obj : str = ... ,
159
+ check_dtype : bool | Literal ["equiv" ] = True ,
160
+ check_index_type : bool | Literal ["equiv" ] = "equiv" ,
161
+ check_column_type : bool | Literal ["equiv" ] = "equiv" ,
162
+ check_frame_type : bool = True ,
163
+ check_names : bool = True ,
164
+ by_blocks : bool = False ,
165
+ check_exact : bool = False ,
166
+ check_datetimelike_compat : bool = False ,
167
+ check_categorical : bool = True ,
168
+ check_like : bool = False ,
169
+ check_freq : bool = True ,
170
+ check_flags : bool = True ,
171
+ rtol : float = 1e-5 ,
172
+ atol : float = 1e-8 ,
173
+ obj : str = "DataFrame" ,
169
174
) -> None : ...
170
175
def assert_equal (left , right , ** kwargs ) -> None : ...
171
176
def assert_sp_array_equal (left : SparseArray , right : SparseArray ) -> None : ...
@@ -178,12 +183,10 @@ def assert_produces_warning(
178
183
) = ...,
179
184
filter_level : Literal [
180
185
"error" , "ignore" , "always" , "default" , "module" , "once"
181
- ] = ... ,
182
- check_stacklevel : bool = ... ,
183
- raise_on_extra_warnings : bool = ... ,
186
+ ] = "always" ,
187
+ check_stacklevel : bool = True ,
188
+ raise_on_extra_warnings : bool = True ,
184
189
match : str | None = None ,
185
190
) -> Generator [list [warnings .WarningMessage ], None , None ]: ...
186
191
@contextmanager
187
- def ensure_clean (
188
- filename : str | None = ..., return_filelike : bool = ..., ** kwargs : Any
189
- ) -> Generator [str , None , None ]: ...
192
+ def ensure_clean (filename : str | None = None ) -> Generator [str , None , None ]: ...
0 commit comments