Skip to content

F841 false negative on assignment to multiple variables #8441

@DetachHead

Description

@DetachHead
def foo():
    a = bar() # error: F841
    b, c = bar() # no error

def bar():
    ...

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedContributions especially welcomeruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions