11from typing import Dict , List , Set , Tuple
22
33from pytype .rewrite .abstract import base
4- from pytype .rewrite .abstract import instances
4+ from pytype .rewrite .abstract import containers
55from pytype .rewrite .tests import test_utils
66from typing_extensions import assert_type
77
@@ -22,7 +22,7 @@ class ListTest(BaseTest):
2222
2323 def test_constant_type (self ):
2424 a = self .const_var ("a" )
25- c = instances .List (self .ctx , [a ])
25+ c = containers .List (self .ctx , [a ])
2626 assert_type (c .constant , List [_AbstractVariable ])
2727
2828
@@ -31,15 +31,15 @@ class DictTest(BaseTest):
3131 def test_constant_type (self ):
3232 a = self .const_var ("a" )
3333 b = self .const_var ("b" )
34- c = instances .Dict (self .ctx , {a : b })
34+ c = containers .Dict (self .ctx , {a : b })
3535 assert_type (c .constant , Dict [_AbstractVariable , _AbstractVariable ])
3636
3737
3838class SetTest (BaseTest ):
3939
4040 def test_constant_type (self ):
4141 a = self .const_var ("a" )
42- c = instances .Set (self .ctx , {a })
42+ c = containers .Set (self .ctx , {a })
4343 assert_type (c .constant , Set [_AbstractVariable ])
4444
4545
@@ -48,7 +48,7 @@ class TupleTest(BaseTest):
4848 def test_constant_type (self ):
4949 a = self .const_var ("a" )
5050 b = self .const_var ("b" )
51- c = instances .Tuple (self .ctx , (a , b ))
51+ c = containers .Tuple (self .ctx , (a , b ))
5252 assert_type (c .constant , Tuple [_AbstractVariable , ...])
5353
5454
0 commit comments