Avoid deprecated Sphinx autodoc options mapping - #701
Conversation
|
You're right, and thanks for the pointer — I checked and #688 does already fix #679. I verified against Sphinx 9.0.4 by running the current from sphinx.ext.autodoc._directive_options import _AutoDocumenterOptions as O
o = O.from_directive_options({"exclude-members": "upper"})
So the bug in #679 is genuinely gone, and my PR isn't fixing anything real. The only thing left is cosmetic: since That's cleanup, not a fix, so I'm happy either way: I can trim this PR down to just that simplification plus the regression test, or simply close it if you'd rather not churn that function. Let me know which you prefer, and #679 can probably be closed as resolved by #688 regardless. |
Summary
Fixes #679.
Tests
pytest -q(315 passed, 2 xfailed)pytest numpydoc/tests/test_numpydoc.py -q(19 passed)ruff check numpydoc/numpydoc.py numpydoc/tests/test_numpydoc.py --ignore TRY004ruff format --check numpydoc/numpydoc.py numpydoc/tests/test_numpydoc.pygit diff --check