Undefined name: partners
cclauss opened this issue · 1 comments
cclauss commented
https://github.com/turicas/socios-brasil/blob/master/socios.py#L126-L129
flake8 testing of https://github.com/turicas/socios-brasil on Python 3.6.4
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./socios.py:97:36: F821 undefined name 'partners'
for partner in partners:
^
./socios.py:100:51: F821 undefined name 'partners'
yield {**company, 'partners': partners}
^
2 F821 undefined name 'partners'
turicas commented
This variable is defined inside the loop, so it's not a bug.