Skip to content

Commit

Permalink
fix: Fix enumeration properties on expression names
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Apr 19, 2024
1 parent 9b5ca45 commit 6f22256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/griffe/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def resolved(self) -> Module | Class | None:
def is_enum_class(self) -> bool:
"""Whether this name resolves to an enumeration class."""
try:
bases = self.parent[self.name].bases # type: ignore[union-attr,index]
bases = self.resolved.bases # type: ignore[union-attr]
except Exception: # noqa: BLE001
return False

Expand Down

0 comments on commit 6f22256

Please sign in to comment.