Backported and Experimental Type Hints for Python 3.8+
typing_extensions module serves two related purposes:
- Enable use of new type system features on older Python versions. For example,
typing.TypeGuardis new in Python 3.10, but
typing_extensionsallows users on previous Python versions to use it too.
- Enable experimentation with new type system PEPs before they are accepted and
added to the
typing_extensions is treated specially by static type checkers such as
mypy and pyright. Objects defined in
typing_extensions are treated the same
way as equivalent forms in
Semantic Versioning. The
major version will be incremented only for backwards-incompatible changes.
Therefore, it's safe to depend
typing_extensions like this:
typing_extensions >=x.y, <(x+1),
x.y is the first version that includes all features you need.
See the documentation for a complete listing of module contents.
for how to contribute to
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for typing_extensions-4.9.0-py3-none-any.whl