Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dectate/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ def get_directive_methods(
cls,
) -> Iterator[tuple[str, DirectiveMethod[Self, ...]]]:
for name in dir(cls):
# NOTE: On Python 3.14+ this can invoke `__annotate__` with format
# `VALUE` which can raise a `NameError`, so it can both cause
# exceptions and also involve unnecessary work, so we explicitly
# avoid touching this attribute
if name == "__annotations__":
continue
attr = getattr(cls, name)
im_func = getattr(attr, "__func__", None)
if im_func is None:
Expand Down
Loading