anentropic / python-waterloo

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

handle function signatures with default value assignments #22

Closed anentropic closed 4 years ago

anentropic commented 4 years ago

fixes: #21

NOTE:
this fix still won't handle signatures where the function is already annotated with Py3 annotations, but that means func will be skipped... seems ok for now as we don't want to re-annotate them, although the error message will misleading "arg names are inconsistent with the function signature"

(we currently have no checking for that case... we expect that code is not already annotated in Py3 style)