Add support for extraction of types from docstring
ilevkivskyi opened this issue · 3 comments
ilevkivskyi commented
We could support at least Google style and Numpydoc
jussike commented
any progress about this?
cclauss commented
Is Google style like internetarchive/openlibrary#6755 ?
- https://google.github.io/styleguide/pyguide.html#383-functions-and-methods has shifted to type hints.
ilevkivskyi commented
@jussike I don't have any immediate plans for this, but open to contributions. (The only requirement, this feature should be behind a flag and type comments should take precedence over docstring types if both are present.)
@cclauss IIUC old Google style is more like
Args:
param_name (type): description.
...
Returns:
type: description.
What you show is what PyCharm uses (also popular style btw)