google / pasta

Library to refactor python code through AST manipulation.
Apache License 2.0
341 stars 40 forks source link

Undefined name 'lineno' in ./pasta/base/annotate.py #46

Closed cclauss closed 5 years ago

cclauss commented 5 years ago

flake8 testing of https://github.com/google/pasta on Python 3.7.1

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./pasta/base/annotate.py:1143:48: F821 undefined name 'lineno'
          'more than the outer indentation.' % lineno)
                                               ^
1     F821 undefined name 'lineno'
1
soupytwist commented 5 years ago

Thank you for the bug report!