readthedocs / sphinx-autoapi

A new approach to API documentation in Sphinx.
https://sphinx-autoapi.readthedocs.io/
MIT License
415 stars 126 forks source link

Replace usage of deprecated `traverse` attribute on docutils nodes #393

Closed AWhetter closed 3 months ago

AWhetter commented 1 year ago

Running the tests outputs the following warning:

tests/test_integration.py: 4 warnings
tests/python/test_pyintegration.py: 33 warnings
  /home/ashley/workspace/sphinx-autoapi/.tox/py311/lib/python3.11/site-packages/autoapi/extension.py:191: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
    nodes = list(doctree.traverse(toctree))

We need to address this before a release of astroid removes the method.