typeshed
typeshed copied to clipboard
PEP 742 (TypeIs) tracker
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 (python/mypy#16898)
- [ ] pytype (google/pytype#1588)
- [ ] pyright (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.