sphinx-doc / sphinx

The Sphinx documentation generator
https://www.sphinx-doc.org/
Other
6.42k stars 2.09k forks source link

Move ``util.typing.restify()`` to ``autodoc`` #12315

Open AA-Turner opened 4 months ago

AA-Turner commented 4 months ago

restify is only ever used within sphinx/ext/autodoc. I get that this would be a breaking change, but it really should be moved there, since it has nothing to do with core Sphinx

Originally posted by @chrisjsewell in https://github.com/sphinx-doc/sphinx/issues/12284#issuecomment-2071628143

picnixz commented 4 months ago

I would suggest having a deprecation period because I'm pretty sure people are patching this one (I'm one those people !)