Closed
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
.