Skip to content

invalid-type-guard-call examples in the docs don't report the error #3757

Description

@DetachHead
from typing import TypeIs

def f(v: object) -> TypeIs[int]: ...

a = [1,2]

f()  # reports `missing-argument` instead
f(*a)  # no error (should report an error because it crashes at runtime, but that's unrelated to `TypeIs`)
f(10)  # no error (false negative)

Playground

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions