@@ -7389,25 +7389,6 @@ def test_substitution(self):
73897389 callable_concat = CallableP [Concatenate [int , P ], Any ]
73907390 self .assertEqual (get_args (callable_concat ), (Concatenate [int , P ], Any ))
73917391
7392- @skipUnless (TYPING_3_12_0 , "__args__ behaves differently" )
7393- def test_substitution_312_plus (self ):
7394- # To pass these tests alias.__args__ in TypeAliasType.__getitem__ needs adjustment
7395- # Would raise: TypeError: Substitution of bare TypeVarTuple is not supported
7396- T = TypeVar ('T' )
7397- Ts = TypeVarTuple ("Ts" )
7398- Variadic = TypeAliasType ("Variadic" , Tuple [int , Unpack [Ts ]], type_params = (Ts ,))
7399-
7400- subcriped_callable_tvt = Variadic [Callable [[Unpack [Ts ]], T ]]
7401- variadic_tvt_callableA = subcriped_callable_tvt [str , object ]
7402- variadic_tvt_callableA2 = subcriped_callable_tvt [Unpack [Tuple [str ]], object ]
7403- self .assertEqual (variadic_tvt_callableA , variadic_tvt_callableA2 )
7404-
7405- variadic_tvt_callableB = subcriped_callable_tvt [[str , int ], object ]
7406- variadic_tvt_callableB2 = subcriped_callable_tvt [Unpack [Tuple [str , int ]], object ]
7407- variadic_tvt_callableB3 = subcriped_callable_tvt [str , int , object ]
7408- self .assertNotEqual (variadic_tvt_callableB , variadic_tvt_callableB2 )
7409- self .assertEqual (variadic_tvt_callableB2 , variadic_tvt_callableB3 )
7410-
74117392 def test_wrong_amount_of_parameters (self ):
74127393 T = TypeVar ('T' )
74137394 T2 = TypeVar ("T2" )
0 commit comments