Skip to content

no error when no argument in TypeGuard function #13199

Closed
@DetachHead

Description

@DetachHead
from typing import TypeGuard

def foo() -> TypeGuard[int]: ... # no error

playground

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions