mypy icon indicating copy to clipboard operation
mypy copied to clipboard

assignment to `_` inside a function incorrectly becomes `Any`

Open DetachHead opened this issue 1 year ago • 0 comments

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

playground

DetachHead avatar Aug 21 '24 06:08 DetachHead