com2ann
com2ann copied to clipboard
Add support for extraction of types from docstring
We could support at least Google style and Numpydoc
any progress about this?
Is Google style like https://github.com/internetarchive/openlibrary/issues/6755 ?
- https://google.github.io/styleguide/pyguide.html#383-functions-and-methods has shifted to type hints.
@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)