Skip to content

Commit 6f22256

Browse files
committed
fix: Fix enumeration properties on expression names
1 parent 9b5ca45 commit 6f22256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/griffe/expressions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def resolved(self) -> Module | Class | None:
619619
def is_enum_class(self) -> bool:
620620
"""Whether this name resolves to an enumeration class."""
621621
try:
622-
bases = self.parent[self.name].bases # type: ignore[union-attr,index]
622+
bases = self.resolved.bases # type: ignore[union-attr]
623623
except Exception: # noqa: BLE001
624624
return False
625625

0 commit comments

Comments
 (0)