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 1 forks source link

TypeVar recognition doesn't work in Py 3 files, only 2.7 #39

Closed anentropic closed 4 years ago

anentropic commented 4 years ago

this will teach you to be lazy with the unit tests...

there must be some difference in the parso nodes between grammars

currently still getting "Ambiguous Type" errors with waterloo annotate -p 3.8, but not with -p 2.7