-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
project: feature trackerTracks whether a typing feature can be used in typeshed stubsTracks whether a typing feature can be used in typeshed stubs
Description
This issue is supposed to track when we can start to use the TypeIs
special form (PEP 742) in typeshed. Support is needed in released versions of:
- PEP accepted
- mypy (Implement TypeIs (PEP 742) mypy#16898)
- pytype (Support PEP 742 (TypeIs) google/pytype#1588)
- pyright (Implement support for TypeIs (PEP 742) microsoft/pyright#7293)
- pyre (optional)
- PyCharm (optional)
Please reference this issue as needed from other issues/PRs to collect places that we might want to update.
Once this is supported, many (most?) TypeGuard
functions in typeshed should be changed to use TypeIs
.
Metadata
Metadata
Assignees
Labels
project: feature trackerTracks whether a typing feature can be used in typeshed stubsTracks whether a typing feature can be used in typeshed stubs