-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add type annotations to the description instead of signature #8407
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
Add type annotations to the description instead of signature #8407
Conversation
This configures Sphinx autodoc to include the type annotations along with the description of the function/method, instead of including it into the signature. Fix pytest-dev#8405
|
As suggested by @davidism in #8405 (comment). |
|
As implied in the issue, I'm -0.5 on this -- I think the existing placement makes more sense, but we can improve cases specifically. |
|
I guess we should close this then?
Do you have anything in mind? |
|
Currently signatures are absymal in the docs, im +1 even tho i agree with @bluetech on the sentiment But I prefer readability now over waiting for the solution Let's make a follow-up issue for beautiful signatures |
|
What do you say @bluetech ? |
|
1+1-0.5 = 1.5 so seems good to go :) |
Hehehe thanks! |
It'd be a really good idea to share a minimal example reproducing this issue with Sphinx. This looks like a bug! |
|
Was the issue with the non typed parameters reported upstream? Couldn't find anything after a quick look. |




This configures Sphinx autodoc to include the type annotations
along with the description of the function/method, instead of including
it into the signature.
Fix #8405