Skip to content

assignment to _ inside a function incorrectly becomes Any #17697

Open
@DetachHead

Description

@DetachHead
def foo() -> None:
    _ = [1] # error: no-any-expr

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions