@@ -7200,18 +7200,13 @@ def test_alias_types_and_substitutions(self):
72007200 Callable [P , T2 ] : (P , T2 ),
72017201 Callable [Concatenate [T2 , P ], T_default ] : (T2 , P , T_default ),
72027202 TypeAliasType ("NestedAlias" , List [T ], type_params = (T ,))[T2 ] : (T2 ,),
7203- }
7204- # currently a limitation, these args are no longer unpacked in 3.11
7205- # OK if GenericAlias in __getitem__ is used
7206- test_argument_cases_310_plus = {
72077203 Unpack [Ts ] : (Ts ,),
72087204 Unpack [Tuple [int , T2 ]] : (T2 ,),
72097205 Concatenate [int , P ] : (P ,),
72107206 }
72117207 test_argument_cases_311_plus = {
72127208 Ts : (Ts ,), # invalid case
72137209 }
7214- test_argument_cases .update (test_argument_cases_310_plus )
72157210 test_argument_cases .update (test_argument_cases_311_plus )
72167211
72177212 test_alias_cases = [
@@ -7249,8 +7244,6 @@ def test_alias_types_and_substitutions(self):
72497244 self .assertEqual (subscripted .__parameters__ , ())
72507245 for expected_args , expected_parameters in test_argument_cases .items ():
72517246 with self .subTest (alias = alias , args = expected_args ):
7252- if expected_args in test_argument_cases_310_plus and sys .version_info < (3 , 10 ):
7253- self .skipTest ("args are unpacked before 3.11 or need GenericAlias" )
72547247 if expected_args in test_argument_cases_311_plus and sys .version_info < (3 , 11 ):
72557248 self .skipTest ("Case is not valid before 3.11" )
72567249 self .assertEqual (get_args (alias [expected_args ]), (expected_args ,))
0 commit comments