-
-
Notifications
You must be signed in to change notification settings - Fork 655
Closed
Description
📚 Documentation
EDITED HERE: As a help wanted issue, please, see below comment #1665 (comment) on what remains to do here. Thanks
If there are many arguments in class/function/method, it's a little hard to read/scan all arguments (due to typehints).
Although there is a Parameters
section, there might be missing some arguments (rarely though).
And we are duplicating type hints work in both signatures and docstring. Writing once can make less work on authors and less type hints mismatch can occur.
If we can remove type hints, it can be a little easier to read, and showing type hints only in Parameters
section.
Changing to this docs style needs a little work. It needs to
- add
autoclass_content = "both"
autodoc_typehints = "description" # new in sphinx 3.1
those lines in conf.py
- removing type hints in docstring
- leaving type hints only in signatures.
Let me know what you think.
cc: @vfdev-5 @sdesrozis @trsvchn
vfdev-5, trsvchn and sdesrozis