A cli tool to convert type annotations found in 'Google-style' docstrings into mypy py2 type comments (and from there into py3 type annotations).
2
stars
0
forks
source link
TODO: configurably (by default) reject incomplete arg typings #8
Closed
anentropic closed 4 years ago
Currently if a function docstring gives a return type but no (or not all) arg types then we will output a type comment like:
This does the best we can with what we've got, to give something acceptable to mypy (and not nothing).
Probably this is not a good default though, in most cases you'd want a warning so you can fully specify your arg types before adding the type comment.