Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.github/ | 25-Apr-2025 | - | 707 | 609 | ||
doc/ | 25-Apr-2025 | - | 1,380 | 833 | ||
scripts/ | 25-Apr-2025 | - | 61 | 50 | ||
src/ | 25-Apr-2025 | - | 10,704 | 8,351 | ||
.editorconfig | D | 25-Apr-2025 | 205 | 13 | 9 | |
.gitignore | D | 25-Apr-2025 | 128 | 19 | 15 | |
.readthedocs.yaml | D | 25-Apr-2025 | 217 | 14 | 7 | |
Android.bp | D | 25-Apr-2025 | 1.1 KiB | 42 | 37 | |
CHANGELOG.md | D | 25-Apr-2025 | 23.4 KiB | 479 | 406 | |
CONTRIBUTING.md | D | 25-Apr-2025 | 2.8 KiB | 71 | 49 | |
LICENSE | D | 25-Apr-2025 | 24.8 KiB | 485 | 396 | |
METADATA | D | 25-Apr-2025 | 377 | 17 | 15 | |
OWNERS | D | 25-Apr-2025 | 51 | 2 | 1 | |
README.md | D | 25-Apr-2025 | 1.4 KiB | 38 | 26 | |
SECURITY.md | D | 25-Apr-2025 | 272 | 11 | 6 | |
pyproject.toml | D | 25-Apr-2025 | 2.6 KiB | 102 | 92 | |
test-requirements.txt | D | 25-Apr-2025 | 12 | 2 | 1 | |
tox.ini | D | 25-Apr-2025 | 143 | 8 | 6 |
README.md
1# Typing Extensions 2 3[](https://gitter.im/python/typing) 4 5[Documentation](https://typing-extensions.readthedocs.io/en/latest/#) – 6[PyPI](https://pypi.org/project/typing-extensions/) 7 8## Overview 9 10The `typing_extensions` module serves two related purposes: 11 12- Enable use of new type system features on older Python versions. For example, 13 `typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows 14 users on previous Python versions to use it too. 15- Enable experimentation with new type system PEPs before they are accepted and 16 added to the `typing` module. 17 18`typing_extensions` is treated specially by static type checkers such as 19mypy and pyright. Objects defined in `typing_extensions` are treated the same 20way as equivalent forms in `typing`. 21 22`typing_extensions` uses 23[Semantic Versioning](https://semver.org/). The 24major version will be incremented only for backwards-incompatible changes. 25Therefore, it's safe to depend 26on `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`, 27where `x.y` is the first version that includes all features you need. 28 29## Included items 30 31See [the documentation](https://typing-extensions.readthedocs.io/en/latest/#) for a 32complete listing of module contents. 33 34## Contributing 35 36See [CONTRIBUTING.md](https://github.com/python/typing_extensions/blob/main/CONTRIBUTING.md) 37for how to contribute to `typing_extensions`. 38