JelleZijlstra / autotyping

Automatically add simple type annotations to your code
222 stars 19 forks source link

Annotate functions with bare returns #2

Closed orsinium closed 3 years ago

orsinium commented 3 years ago

Functions that have a bare return statement are not annotated by --auto-none. Looks like visit_Return should also check that the return statement isn't bare (just return instead of return something).