Skip to content

Sphinx 5 Compatibility: nodes.Node.traverse() is obsoleted by Node.findall() #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lukasjuhrich opened this issue Jan 25, 2024 · 0 comments

Comments

@lukasjuhrich
Copy link

Similarly to numpy/numpydoc#399, I get a PendingDeprecationWarning when building my docs using sphinx-paramlinks:

[…snip…]
/opt/pycroft/venv/lib/python3.11/site-packages/sphinx_paramlinks/sphinx_paramlinks.py:195: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
  for ref in self.document.traverse(nodes.strong):                                                                               
/opt/pycroft/venv/lib/python3.11/site-packages/sphinx_paramlinks/sphinx_paramlinks.py:146: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
  for ref in self.document.traverse(addnodes.pending_xref):                                                                      
reading sources... [100%] search                                                                                                 
/opt/pycroft/venv/lib/python3.11/site-packages/sphinx_paramlinks/sphinx_paramlinks.py:195: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
  for ref in self.document.traverse(nodes.strong):          
/opt/pycroft/venv/lib/python3.11/site-packages/sphinx_paramlinks/sphinx_paramlinks.py:146: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
  for ref in self.document.traverse(addnodes.pending_xref):

I don't know much about the internals here, but here are the reference docs for findall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant