@@ -523,7 +523,11 @@ def assert_is_sorted(seq) -> None:
523523
524524
525525def 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" ,
527531) -> None :
528532 """
529533 Test that Categoricals are equivalent.
@@ -618,7 +622,7 @@ def assert_period_array_equal(left, right, obj="PeriodArray") -> None:
618622
619623
620624def assert_datetime_array_equal (
621- left , right , obj = "DatetimeArray" , check_freq = True
625+ left , right , obj = "DatetimeArray" , check_freq : bool = True
622626) -> None :
623627 __tracebackhide__ = True
624628 _check_isinstance (left , right , DatetimeArray )
@@ -630,7 +634,7 @@ def assert_datetime_array_equal(
630634
631635
632636def assert_timedelta_array_equal (
633- left , right , obj = "TimedeltaArray" , check_freq = True
637+ left , right , obj = "TimedeltaArray" , check_freq : bool = True
634638) -> None :
635639 __tracebackhide__ = True
636640 _check_isinstance (left , right , TimedeltaArray )
@@ -685,7 +689,7 @@ def raise_assert_detail(
685689def assert_numpy_array_equal (
686690 left ,
687691 right ,
688- strict_nan = False ,
692+ strict_nan : bool = False ,
689693 check_dtype : bool | Literal ["equiv" ] = True ,
690694 err_msg = None ,
691695 check_same = None ,
@@ -768,7 +772,7 @@ def assert_extension_array_equal(
768772 check_dtype : bool | Literal ["equiv" ] = True ,
769773 index_values = None ,
770774 check_less_precise = no_default ,
771- check_exact = False ,
775+ check_exact : bool = False ,
772776 rtol : float = 1.0e-5 ,
773777 atol : float = 1.0e-8 ,
774778) -> None :
@@ -872,21 +876,21 @@ def assert_series_equal(
872876 right ,
873877 check_dtype : bool | Literal ["equiv" ] = True ,
874878 check_index_type : bool | Literal ["equiv" ] = "equiv" ,
875- check_series_type = True ,
879+ check_series_type : bool = True ,
876880 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 ,
886890 obj = "Series" ,
887891 * ,
888- check_index = True ,
889- check_like = False ,
892+ check_index : bool = True ,
893+ check_like : bool = False ,
890894) -> None :
891895 """
892896 Check that left and right Series are equal.
@@ -1140,19 +1144,19 @@ def assert_frame_equal(
11401144 right ,
11411145 check_dtype : bool | Literal ["equiv" ] = True ,
11421146 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 ,
11451149 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 ,
11561160 obj = "DataFrame" ,
11571161) -> None :
11581162 """
0 commit comments