-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Short signatures for autosummary #13101
Comments
(...)
A quick thought is that every method (unbounded doesn't exist in Python 3) has at least the But the
I support this, it would definitely make those docs a lot better.
A single |
Yes, that’s the plan.
I wouldn’t use |
autosummary has currently two options for signatures
:nosignatures:
option. When using this, only the name is printed, so that we loose the distinction between attributes/properties and methods, example:The first one is a property, the second one is a method with arguments, the third one is a method without arguments. (source)
I propose to add a third option with a reduced signature: It could look like this:
This would convey more information without requiring much extra space.
If this is a reasonable feature, I'd start impelementing it. - Side- / implementation question. If we want this, is an additional
:shortsignatures:
option the way to go (which would be mutually exclusive with:nosignatures:
or would one better go for a generic option:signatures:
that can take values like:signatures: short
,:signatures: none
, which would be extensible to more signature handling variants?The text was updated successfully, but these errors were encountered: