From 028f9d9dcf4eb6dff022d2c2dbb91be9301a487d Mon Sep 17 00:00:00 2001 From: Callum Macpherson Date: Tue, 7 Apr 2026 22:51:25 +0100 Subject: [PATCH 1/2] document GuppyEnumDefinition --- sphinx/api/defs.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sphinx/api/defs.md b/sphinx/api/defs.md index d1e80c6..e315186 100644 --- a/sphinx/api/defs.md +++ b/sphinx/api/defs.md @@ -25,5 +25,10 @@ .. automethod:: __eq__ .. automethod:: __getattr__ +.. autoclass:: GuppyEnumDefinition + :show-inheritance: + + .. automethod:: __getattr__ + .. autoexception:: EntrypointArgsError ``` \ No newline at end of file From 38eebfa3f05605033df7379f4e571eec00303e69 Mon Sep 17 00:00:00 2001 From: Callum Macpherson Date: Tue, 7 Apr 2026 22:53:34 +0100 Subject: [PATCH 2/2] exclude more unhelpful dunder methods from the API docs --- sphinx/_templates/autosummary/class.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/_templates/autosummary/class.rst b/sphinx/_templates/autosummary/class.rst index 273e94a..3c391d4 100644 --- a/sphinx/_templates/autosummary/class.rst +++ b/sphinx/_templates/autosummary/class.rst @@ -9,7 +9,7 @@ .. autoclass:: {{ objname }} :members: :undoc-members: - :exclude-members: __module__, __weakref__, __dict__, __annotations__, __dataclass_params__, __dataclass_fields__, __match_args__, __orig_bases__, __parameters__ + :exclude-members: __module__, __weakref__, __dict__, __annotations__, __dataclass_params__, __dataclass_fields__, __match_args__, __orig_bases__, __parameters__, __abstractmethods__, __firstlineno__, __static_attributes__, __hash__, __annotate_func__, __annotations_cache__, __protocol_attrs__, __subclasshook__ :special-members: {% block methods %}