Skip to content

Undefined name in f-string following only blank lines is not reported #115

Description

@kkurian

Problem

When an f-string follows only blank lines, an undefined name in the f-string is is not reported.

Input

... blank line ...
f'{foo}'

Result

No errors reported.

Expected Result

An error marker on Line 2 reporting F821 undefined name 'foo'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions