mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix a potential AttributeError
This commit is contained in:
@@ -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