-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Documentation: signatures with typehints. #638
Comments
Perhaps we can do a poll on discord to see which layout users prefer :) |
I really like the grayed out typing construct. |
See the trick here: pandas-dev/pandas#33025 (comment) I think it would be very useful for
This one: ? |
Great reference for hiding the information, lets do something like that. I'll play later. As for the type hinting, I kind of prefer how it is shown in |
The typing should be present in the argument description, I don't mind having them in the interface, IFF they are simple lines, the |
Yeah I agree, I would like that the typehints are shown in the signature with 1 line per argument only if it is possible to use the trick to avoid expanding the complex typehints. I think for users that are already familiar with type hints that might help, and also it shows that the package is type hinted, which is not clear if the typehint appears only in the description. |
Function signatures with typehints in the documentation can become very hard to read:
I been playing with some CSS, and it is possible to have each parameter in a new line, just as you would do in the source code:
Do you think it would be better?
The text was updated successfully, but these errors were encountered: