Adjust to cope with Sphinx 9 by cjwatson · Pull Request #47 · pyinvoke/invocations (original) (raw)

@cjwatson

There might be some way to make this extension work with the new sphinx.ext.autodoc implementation, but if so I don't know what it is; see sphinx-doc/sphinx#14089. For now, this seems to get things going again.

sphinx.ext.autodoc.stringify_signature was only ever a re-export from sphinx.util.inspect, so importing it directly from there should be safe with all the Sphinx versions that worked before.