@@ -523,7 +523,11 @@ def assert_is_sorted(seq) -> None:
523
523
524
524
525
525
def assert_categorical_equal (
526
- left , right , check_dtype = True , check_category_order = True , obj = "Categorical"
526
+ left ,
527
+ right ,
528
+ check_dtype : bool = True ,
529
+ check_category_order : bool = True ,
530
+ obj = "Categorical" ,
527
531
) -> None :
528
532
"""
529
533
Test that Categoricals are equivalent.
@@ -618,7 +622,7 @@ def assert_period_array_equal(left, right, obj="PeriodArray") -> None:
618
622
619
623
620
624
def assert_datetime_array_equal (
621
- left , right , obj = "DatetimeArray" , check_freq = True
625
+ left , right , obj = "DatetimeArray" , check_freq : bool = True
622
626
) -> None :
623
627
__tracebackhide__ = True
624
628
_check_isinstance (left , right , DatetimeArray )
@@ -630,7 +634,7 @@ def assert_datetime_array_equal(
630
634
631
635
632
636
def assert_timedelta_array_equal (
633
- left , right , obj = "TimedeltaArray" , check_freq = True
637
+ left , right , obj = "TimedeltaArray" , check_freq : bool = True
634
638
) -> None :
635
639
__tracebackhide__ = True
636
640
_check_isinstance (left , right , TimedeltaArray )
@@ -685,7 +689,7 @@ def raise_assert_detail(
685
689
def assert_numpy_array_equal (
686
690
left ,
687
691
right ,
688
- strict_nan = False ,
692
+ strict_nan : bool = False ,
689
693
check_dtype : bool | Literal ["equiv" ] = True ,
690
694
err_msg = None ,
691
695
check_same = None ,
@@ -768,7 +772,7 @@ def assert_extension_array_equal(
768
772
check_dtype : bool | Literal ["equiv" ] = True ,
769
773
index_values = None ,
770
774
check_less_precise = no_default ,
771
- check_exact = False ,
775
+ check_exact : bool = False ,
772
776
rtol : float = 1.0e-5 ,
773
777
atol : float = 1.0e-8 ,
774
778
) -> None :
@@ -872,21 +876,21 @@ def assert_series_equal(
872
876
right ,
873
877
check_dtype : bool | Literal ["equiv" ] = True ,
874
878
check_index_type : bool | Literal ["equiv" ] = "equiv" ,
875
- check_series_type = True ,
879
+ check_series_type : bool = True ,
876
880
check_less_precise : bool | int | NoDefault = no_default ,
877
- check_names = True ,
878
- check_exact = False ,
879
- check_datetimelike_compat = False ,
880
- check_categorical = True ,
881
- check_category_order = True ,
882
- check_freq = True ,
883
- check_flags = True ,
884
- rtol = 1.0e-5 ,
885
- atol = 1.0e-8 ,
881
+ check_names : bool = True ,
882
+ check_exact : bool = False ,
883
+ check_datetimelike_compat : bool = False ,
884
+ check_categorical : bool = True ,
885
+ check_category_order : bool = True ,
886
+ check_freq : bool = True ,
887
+ check_flags : bool = True ,
888
+ rtol : float = 1.0e-5 ,
889
+ atol : float = 1.0e-8 ,
886
890
obj = "Series" ,
887
891
* ,
888
- check_index = True ,
889
- check_like = False ,
892
+ check_index : bool = True ,
893
+ check_like : bool = False ,
890
894
) -> None :
891
895
"""
892
896
Check that left and right Series are equal.
@@ -1140,19 +1144,19 @@ def assert_frame_equal(
1140
1144
right ,
1141
1145
check_dtype : bool | Literal ["equiv" ] = True ,
1142
1146
check_index_type : bool | Literal ["equiv" ] = "equiv" ,
1143
- check_column_type = "equiv" ,
1144
- check_frame_type = True ,
1147
+ check_column_type : bool | Literal [ "equiv" ] = "equiv" ,
1148
+ check_frame_type : bool = True ,
1145
1149
check_less_precise = no_default ,
1146
- check_names = True ,
1147
- by_blocks = False ,
1148
- check_exact = False ,
1149
- check_datetimelike_compat = False ,
1150
- check_categorical = True ,
1151
- check_like = False ,
1152
- check_freq = True ,
1153
- check_flags = True ,
1154
- rtol = 1.0e-5 ,
1155
- atol = 1.0e-8 ,
1150
+ check_names : bool = True ,
1151
+ by_blocks : bool = False ,
1152
+ check_exact : bool = False ,
1153
+ check_datetimelike_compat : bool = False ,
1154
+ check_categorical : bool = True ,
1155
+ check_like : bool = False ,
1156
+ check_freq : bool = True ,
1157
+ check_flags : bool = True ,
1158
+ rtol : float = 1.0e-5 ,
1159
+ atol : float = 1.0e-8 ,
1156
1160
obj = "DataFrame" ,
1157
1161
) -> None :
1158
1162
"""
0 commit comments