commit | 7e294992dfe3070b3ca228555fa3887001ceaab2 | [log] [tgz] |
---|---|---|
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | Thu Sep 07 17:44:05 2023 -0700 |
committer | GitHub <noreply@github.com> | Thu Sep 07 17:44:05 2023 -0700 |
tree | 0d0a6b95c6b10d06b322224442a08c10feb2536e | |
parent | ca2a739574fb259f156faba005aaa802e6f19faa [diff] |
Release 4.8.0rc1 (#280)
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
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.
See the documentation for a complete listing of module contents.
See CONTRIBUTING.md for how to contribute to typing_extensions
.