@@ -75,18 +75,18 @@ def test_tuple_type(self) -> None:
7575 assert_equal (str (TupleType ([self .x , AnyType ()], None )), 'Tuple[X?, Any]' )
7676
7777 def test_type_variable_binding (self ) -> None :
78- assert_equal (str (TypeVarDef ('X' , 1 , None , self .fx .o )), 'X' )
78+ assert_equal (str (TypeVarDef ('X' , 1 , [] , self .fx .o )), 'X' )
7979 assert_equal (str (TypeVarDef ('X' , 1 , [self .x , self .y ], self .fx .o )),
8080 'X in (X?, Y?)' )
8181
8282 def test_generic_function_type (self ) -> None :
8383 c = CallableType ([self .x , self .y ], [ARG_POS , ARG_POS ], [None , None ],
8484 self .y , self .function , name = None ,
85- variables = [TypeVarDef ('X' , - 1 , None , self .fx .o )])
85+ variables = [TypeVarDef ('X' , - 1 , [] , self .fx .o )])
8686 assert_equal (str (c ), 'def [X] (X?, Y?) -> Y?' )
8787
88- v = [TypeVarDef ('Y' , - 1 , None , self .fx .o ),
89- TypeVarDef ('X' , - 2 , None , self .fx .o )]
88+ v = [TypeVarDef ('Y' , - 1 , [] , self .fx .o ),
89+ TypeVarDef ('X' , - 2 , [] , self .fx .o )]
9090 c2 = CallableType ([], [], [], NoneTyp (), self .function , name = None , variables = v )
9191 assert_equal (str (c2 ), 'def [Y, X] ()' )
9292
0 commit comments