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

None not recognised as builtin? #24

Closed anentropic closed 4 years ago

anentropic commented 4 years ago

some docstrings like

    Returns:
        None

are reporting:

Ambiguous Type: None in docstring for ... does not match any builtins, typing.<Type>, imported names or class def in the file, and does not provide a dotted-path we can use to add an import statement.

Maybe it's a Python 3 vs 2.7 difference (src files are Py3)