We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aa7172 commit 3359c5dCopy full SHA for 3359c5d
src/scanpydoc/definition_list_typed_field.py
@@ -98,12 +98,10 @@ def handle_item(
98
@_setup_sig
99
def setup(app: Sphinx) -> dict[str, Any]:
100
"""Replace :class:`~sphinx.domains.python.PyTypedField` with ours."""
101
- napoleon_requested = "sphinx.ext.napoleon" in app.config.extensions
102
- napoleon_loaded = next(
103
- (True for ft in PyObject.doc_field_types if ft.name == "keyword"),
104
- False,
105
- )
106
- if napoleon_requested and not napoleon_loaded:
+ if (
+ "sphinx.ext.napoleon" in app.config.extensions
+ and "sphinx.ext.napoleon" not in app.extensions
+ ):
107
msg = f"Please load sphinx.ext.napoleon before {__name__}"
108
raise RuntimeError(msg)
109
0 commit comments