Skip to main content

Backported and Experimental Type Hints for Python 3.9+

Project description

Typing Extensions

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

DocumentationPyPI

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.

Included items

See the documentation for a complete listing of module contents.

Contributing

See CONTRIBUTING.md for how to contribute to typing_extensions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typing_extensions-4.14.1.tar.gz (107.7 kB view details)

Uploaded Source

Built Distribution

typing_extensions-4.14.1-py3-none-any.whl (43.9 kB view details)

Uploaded Python 3

File details

Details for the file typing_extensions-4.14.1.tar.gz.

File metadata

  • Download URL: typing_extensions-4.14.1.tar.gz
  • Upload date:
  • Size: 107.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for typing_extensions-4.14.1.tar.gz
Algorithm Hash digest
SHA256 38b39f4aeeab64884ce9f74c94263ef78f3c22467c8724005483154c26648d36
MD5 da52c877660b1760771ce7553f729c5d
BLAKE2b-256 985ada40306b885cc8c09109dc2e1abd358d5684b1425678151cdaed4731c822

See more details on using hashes here.

Provenance

The following attestation bundles were made for typing_extensions-4.14.1.tar.gz:

Publisher: publish.yml on python/typing_extensions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typing_extensions-4.14.1-py3-none-any.whl.

File metadata

File hashes

Hashes for typing_extensions-4.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1e1e3b58374dc93031d6eda2420a48ea44a36c2b4766a4fdeb3710755731d76
MD5 86905389dfed18c11e510c9e23147fcb
BLAKE2b-256 b500d631e67a838026495268c2f6884f3711a15a9a2a96cd244fdaea53b823fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for typing_extensions-4.14.1-py3-none-any.whl:

Publisher: publish.yml on python/typing_extensions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page