-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Use sphinx.util.inspect.Signature not sphinx.ext.autodoc.inspector.formatargspec #27578
Comments
comment:1
The |
comment:2
Sphinx has its own |
Changed keywords from none to sphinx, formatargspec, Signature |
This comment has been minimized.
This comment has been minimized.
comment:7
The proposed changes at #27971 get rid of the deprecation warnings. We can leave this open in case it is worthwhile to use Sphinx's |
comment:8
Moving open critical and blocker issues to the next release milestone (optimistically). |
comment:9
Ticket retargeted after milestone closed |
comment:12
See also: #31309 |
comment:13
Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date. |
comment:17
An alternative is proposed in #30884. |
We rebase `sage_autodoc` to Sphinx 5.3.0. This is a step toward eventual removal of sage_autodoc in sagemath#30893, a customization of Sphinx autodoc extension for Sage objects. Other related tickets are sagemath#27578. sagemath#30884, sagemath#31309, in this regard. URL: https://trac.sagemath.org/34730 Reported by: klee Ticket author(s): Kwankyu Lee Reviewer(s): Tobias Diez
After upgrading to Sphinx 1.8.5 in #26451, Sphinx's function
formatargspec
is deprecated, so we should not use anymore it insrc/sage_setup/docbuild/ext/sage_autodoc.py
.The deprecation warning advises to replace the use of
sphinx.ext.autodoc.inspector.formatargspec
by that of
sphinx.util.inspect.Signature
.For ordinary Python functions, we may be able to change
formatargspec(my_func, *argspec)
toSignature(my_func).format_args()
. I don't think this works with Cython functions, though.CC: @kiwifb @jdemeyer @slel @strogdon @tobiasdiez
Component: documentation
Keywords: sphinx, formatargspec, Signature
Issue created by migration from https://trac.sagemath.org/ticket/27578
The text was updated successfully, but these errors were encountered: