| 1 |
Metadata-Version: 2.1 |
| 2 |
Name: typing_extensions |
| 3 |
Version: 4.12.2 |
| 4 |
Summary: Backported and Experimental Type Hints for Python 3.8+ |
| 5 |
Keywords: annotations,backport,checker,checking,function,hinting,hints,type,typechecking,typehinting,typehints,typing |
| 6 |
Author-email: "Guido van Rossum, Jukka Lehtosalo, Łukasz Langa, Michael Lee" <[email protected]> |
| 7 |
Requires-Python: >=3.8 |
| 8 |
Description-Content-Type: text/markdown |
| 9 |
Classifier: Development Status :: 5 - Production/Stable |
| 10 |
Classifier: Environment :: Console |
| 11 |
Classifier: Intended Audience :: Developers |
| 12 |
Classifier: License :: OSI Approved :: Python Software Foundation License |
| 13 |
Classifier: Operating System :: OS Independent |
| 14 |
Classifier: Programming Language :: Python :: 3 |
| 15 |
Classifier: Programming Language :: Python :: 3 :: Only |
| 16 |
Classifier: Programming Language :: Python :: 3.8 |
| 17 |
Classifier: Programming Language :: Python :: 3.9 |
| 18 |
Classifier: Programming Language :: Python :: 3.10 |
| 19 |
Classifier: Programming Language :: Python :: 3.11 |
| 20 |
Classifier: Programming Language :: Python :: 3.12 |
| 21 |
Classifier: Programming Language :: Python :: 3.13 |
| 22 |
Classifier: Topic :: Software Development |
| 23 |
Project-URL: Bug Tracker, https://github.com/python/typing_extensions/issues |
| 24 |
Project-URL: Changes, https://github.com/python/typing_extensions/blob/main/CHANGELOG.md |
| 25 |
Project-URL: Documentation, https://typing-extensions.readthedocs.io/ |
| 26 |
Project-URL: Home, https://github.com/python/typing_extensions |
| 27 |
Project-URL: Q & A, https://github.com/python/typing/discussions |
| 28 |
Project-URL: Repository, https://github.com/python/typing_extensions |
| 29 |
|
| 30 |
# Typing Extensions |
| 31 |
|
| 32 |
[](https://gitter.im/python/typing) |
| 33 |
|
| 34 |
[Documentation](https://typing-extensions.readthedocs.io/en/latest/#) – |
| 35 |
[PyPI](https://pypi.org/project/typing-extensions/) |
| 36 |
|
| 37 |
## Overview |
| 38 |
|
| 39 |
The `typing_extensions` module serves two related purposes: |
| 40 |
|
| 41 |
- Enable use of new type system features on older Python versions. For example, |
| 42 |
`typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows |
| 43 |
users on previous Python versions to use it too. |
| 44 |
- Enable experimentation with new type system PEPs before they are accepted and |
| 45 |
added to the `typing` module. |
| 46 |
|
| 47 |
`typing_extensions` is treated specially by static type checkers such as |
| 48 |
mypy and pyright. Objects defined in `typing_extensions` are treated the same |
| 49 |
way as equivalent forms in `typing`. |
| 50 |
|
| 51 |
`typing_extensions` uses |
| 52 |
[Semantic Versioning](https://semver.org/). The |
| 53 |
major version will be incremented only for backwards-incompatible changes. |
| 54 |
Therefore, it's safe to depend |
| 55 |
on `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`, |
| 56 |
where `x.y` is the first version that includes all features you need. |
| 57 |
|
| 58 |
## Included items |
| 59 |
|
| 60 |
See [the documentation](https://typing-extensions.readthedocs.io/en/latest/#) for a |
| 61 |
complete listing of module contents. |
| 62 |
|
| 63 |
## Contributing |
| 64 |
|
| 65 |
See [CONTRIBUTING.md](https://github.com/python/typing_extensions/blob/main/CONTRIBUTING.md) |
| 66 |
for how to contribute to `typing_extensions`. |
| 67 |
|