Skip to content

Implement support for TypeIs (PEP 742) #7293

@JelleZijlstra

Description

@JelleZijlstra

It would be useful for pyright to add support for the proposed TypeIs special form from PEP 742. I am happy to contribute the implementation myself. I know pyright previously had support for StrictTypeGuard, so it may just be a matter of bringing back that support and renaming the special form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions