Skip to content

no error when no argument in TypeGuard function #13199

Closed

Description

@DetachHead
from typing import TypeGuard

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

playground

Activity

  1. added and removed
    bugmypy got something wrong
    on Jul 20, 2022
  2. added a commit that references this issue on Jan 31, 2023
    28c67cb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions