You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that using field names containing keywords (such as for or while) in a typing.NamedTuple makes flake8 report this error E701 multiple statements on one line (colon)
If this is a bug report, please explain with examples (and example code) what you expected to happen and what actually happened.
However, flake8 reports two errors, concerning the fields containing for and while in that case:
$ flake8 script.py
flake8_namedtuple.py:6:12: E701 multiple statements on one line (colon)
flake8_namedtuple.py:8:11: E701 multiple statements on one line (colon)
The text was updated successfully, but these errors were encountered:
In GitLab by @michaeldel on Jul 23, 2017, 17:00
Please describe how you installed Flake8
Please provide the exact, unmodified output of
flake8 --bug-report
Please describe the problem or feature
It seems that using field names containing keywords (such as
for
orwhile
) in atyping.NamedTuple
makes flake8 report this errorE701 multiple statements on one line (colon)
If this is a bug report, please explain with examples (and example code) what you expected to happen and what actually happened.
Here is a working example showing the bug:
I can run it without any problem:
However, flake8 reports two errors, concerning the fields containing
for
andwhile
in that case:The text was updated successfully, but these errors were encountered: