| commit | f9d21b1aaaed1e0eacd12acda1c6d665a87a25e8 | [log] [tgz] | 
|---|---|---|
| author | Alex Waygood <Alex.Waygood@Gmail.com> | Fri Jun 02 00:35:00 2023 +0100 | 
| committer | GitHub <noreply@github.com> | Thu Jun 01 16:35:00 2023 -0700 | 
| tree | 001b08f6064f21f21be4b96e52ce3f8e7989a20a | |
| parent | cef8f0ed1ac803acac5b6201451b09538de15357 [diff] | 
Backport CPython PR 105152 (#208)
The typing_extensions module serves two related purposes:
typing.TypeGuard is new in Python 3.10, but typing_extensions allows users on previous Python versions to use it too.typing module.typing_extensions uses Semantic Versioning. The major version will be incremented only for backwards-incompatible changes. Therefore, it's safe to depend on typing_extensions like this: typing_extensions >=x.y, <(x+1), where x.y is the first version that includes all features you need.
typing_extensions supports Python versions 3.7 and higher.
See the documentation for a complete listing of module contents.
To run tests, navigate into the src/ directory and run test_typing_extensions.py.