@@ -7318,10 +7318,6 @@ def test_or(self):
73187318
73197319 def test_getitem (self ):
73207320 T = TypeVar ('T' )
7321- ValueWithoutT = TypeAliasType ("ValueWithoutT" , int , type_params = (T ,))
7322- still_subscripted = ValueWithoutT [str ]
7323- self .assertEqual (get_args (still_subscripted ), (str ,))
7324-
73257321 ListOrSetT = TypeAliasType ("ListOrSetT" , Union [List [T ], Set [T ]], type_params = (T ,))
73267322 subscripted = ListOrSetT [int ]
73277323 self .assertEqual (get_args (subscripted ), (int ,))
@@ -7336,6 +7332,10 @@ def test_getitem(self):
73367332 self .assertEqual (get_args (fully_subscripted ), (Iterable [float ],))
73377333 self .assertIs (get_origin (fully_subscripted ), ListOrSetT )
73387334
7335+ ValueWithoutTypeVar = TypeAliasType ("ValueWithoutTypeParam" , int , type_params = (T ,))
7336+ still_subscripted = ValueWithoutTypeVar [str ]
7337+ self .assertEqual (get_args (still_subscripted ), (str ,))
7338+
73397339 def test_callable_without_concatenate (self ):
73407340 P = ParamSpec ('P' )
73417341 CallableP = TypeAliasType ("CallableP" , Callable [P , Any ], type_params = (P ,))
@@ -7396,7 +7396,6 @@ def test_substitution(self):
73967396 CallableP = TypeAliasType ("CallableP" , Callable [P , T ], type_params = (P , T ))
73977397 callable_concat = CallableP [Concatenate [int , P ], Any ]
73987398 self .assertEqual (get_args (callable_concat ), (Concatenate [int , P ], Any ))
7399- self .assertEqual (callable_concat .__parameters__ , (P ,))
74007399
74017400 @skipUnless (TYPING_3_12_0 , "__args__ behaves differently" )
74027401 def test_substitution_312_plus (self ):
0 commit comments