commit | 0363a6d51884017b8b1a77a0e38fe02327edeb14 | [log] [tgz] |
---|---|---|
author | Alex Waygood <Alex.Waygood@Gmail.com> | Mon Jun 05 15:14:34 2023 +0100 |
committer | GitHub <noreply@github.com> | Mon Jun 05 07:14:34 2023 -0700 |
tree | 9e12d8bc8f450186a0539b3989fa7e3412601447 | |
parent | afabbbdd6df2dfc76b06f91b3e1feffe7d046dbc [diff] |
Backport recent fixes to `Protocol` from 3.12 (#218)
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
.