File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ def quote(self, value):
105
105
if typ in self .type_map :
106
106
instance_type , constructor_type = self .type_map [typ ]
107
107
else :
108
- instance_type = types .TInstance ("{}.{}" .format (typ .__module__ , typ .__qualname__ ))
108
+ instance_type = types .TInstance ("{}.{}" .format (typ .__module__ , typ .__qualname__ ),
109
+ OrderedDict ())
109
110
instance_type .attributes ['__objectid__' ] = builtins .TInt (types .TValue (32 ))
110
111
111
112
constructor_type = types .TConstructor (instance_type )
Original file line number Diff line number Diff line change @@ -359,7 +359,8 @@ class TInstance(TMono):
359
359
was created
360
360
"""
361
361
362
- def __init__ (self , name , attributes = OrderedDict ()):
362
+ def __init__ (self , name , attributes ):
363
+ assert isinstance (attributes , OrderedDict )
363
364
super ().__init__ (name )
364
365
self .attributes = attributes
365
366
You can’t perform that action at this time.
0 commit comments