dropbox / pyannotate

Auto-generate PEP-484 annotations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Annotations are not generated for one-liner functions

gvanrossum opened this issue · comments

This function will not have an annotation added:

def logtest(a, b, c=7, *var, **kw): return 7, a, b

Change it to have the return on the next line and it will work:

def logtest(a, b, c=7, *var, **kw):
    return 7, a, b