Skip to main content

Typing Extensions

Chat at https://gitter.im/python/typing

Documentation – PyPI

Overview

The typing_extensions module serves two related purposes:

  • Enable use of new type system features on older Python versions. For example, typing.TypeGuard is new in Python 3.10, but typing_extensions allows 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 module.

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 typing.

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.

Included items

See the documentation for a complete listing of module contents.

Contributing

See CONTRIBUTING.md for how to contribute to typing_extensions.

Metadata

Release files for typing-extensions 4.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typing-extensions 4.7.0
File Size Uploaded Provenance Actions
typing_extensions-4.7.0.tar.gz 72.6 kB Without provenance Details for typing_extensions-4.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for typing-extensions 4.7.0
File Interpreter ABI Platform Actions
typing_extensions-4.7.0-py3-none-any.whl Python 3 none any Details for typing_extensions-4.7.0-py3-none-any.whl

Total release size: 105.6 kB

Release files / typing_extensions-4.7.0.tar.gz

Download URL typing_extensions-4.7.0.tar.gz
Size 72.6 kB
Tags Source
SHA-256 checksum
How to use checksums
935ccf31549830cda708b42289d44b6f74084d616a00be651601a4f968e77c82
BLAKE2b-256 checksum
How to use checksums
57e3b37a6b1ce6c1b2b75d05997ec24f73c794bc05a587e0f30a532d0ab13cb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0b2

Release files / typing_extensions-4.7.0-py3-none-any.whl

Download URL typing_extensions-4.7.0-py3-none-any.whl
Size 33.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d8c9dac95c27d20df12fb1d97b9793ab8b2af8a3a525e68c80e21060c161771
BLAKE2b-256 checksum
How to use checksums
7e4db0185d077dc1cd070a56859a0ba3bb6e76618393ec693e59faf1368da8f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0b2

Security for typing-extensions 4.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.7.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page