@@ -95,7 +95,7 @@ def add_child_ref(self, ptr: 'ModelPtr'):
9595 def remove_child_ref (self , ptr : 'ModelPtr' ):
9696 self .child_pointers .remove (ptr )
9797
98- def to_typing_code (self , types_style : Dict [Union [' BaseType' , Type [' BaseType' ]], dict ]) \
98+ def to_typing_code (self , types_style : Dict [Union [BaseType , Type [BaseType ]], dict ]) \
9999 -> Tuple [ImportPathList , str ]:
100100 if self .name is None :
101101 raise ValueError ('Model without name can not be typed' )
@@ -132,7 +132,7 @@ def replace_parent(self, t: ModelMeta, **kwargs) -> 'ModelPtr':
132132 self .parent .add_child_ref (self )
133133 return self
134134
135- def to_typing_code (self , types_style : Dict [Union [' BaseType' , Type [' BaseType' ]], dict ]) \
135+ def to_typing_code (self , types_style : Dict [Union [BaseType , Type [BaseType ]], dict ]) \
136136 -> Tuple [ImportPathList , str ]:
137137 return AbsoluteModelRef (self .type ).to_typing_code (types_style )
138138
@@ -190,7 +190,7 @@ def inject(cls, patches: ContextInjectionType):
190190 def __init__ (self , model : ModelMeta ):
191191 self .model = model
192192
193- def to_typing_code (self , types_style : Dict [Union [' BaseType' , Type [' BaseType' ]], dict ]) \
193+ def to_typing_code (self , types_style : Dict [Union [BaseType , Type [BaseType ]], dict ]) \
194194 -> Tuple [ImportPathList , str ]:
195195 context_data = self .Context .data .context
196196 if context_data :
0 commit comments