Fix a potential AttributeError
This commit is contained in:
1 parent
dde40b3a71
commit
61e9371849
1 file changed
+1
-1
@@ -219,7 +219,7 @@ class GenericClass(ClassMixin, DefineGenericBase):
|
||||
# them back in a set afterwards.
|
||||
for py_class in value_set:
|
||||
if not is_class_value:
|
||||
if py_class.is_instance():
|
||||
if py_class.is_instance() and not py_class.is_compiled():
|
||||
py_class = py_class.get_annotated_class_object()
|
||||
else:
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user