New submission from Łukasz Langa: f-strings are computed in a separate compiler step. This makes their lineno and col_offset information wrong. This is problematic for flake8 which reports problems inside f-strings on the wrong line (typically the first one).
Attached patch fixes the issue. ---------- assignee: lukasz.langa keywords: 3.6regression messages: 294408 nosy: lukasz.langa priority: normal severity: normal stage: patch review status: open title: FormattedValue expressions have wrong lineno and col_offset information type: behavior versions: Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30465> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com