commit | 76c971e8d859310747ba8636a99c8d2e9d616f16 | [log] [tgz] |
---|---|---|
author | Alex Waygood <Alex.Waygood@Gmail.com> | Thu Jun 08 10:54:16 2023 +0100 |
committer | GitHub <noreply@github.com> | Thu Jun 08 11:54:16 2023 +0200 |
tree | 0b625b0c432b645976a418a144dd771075e573a4 | |
parent | 8a1ffe6277ed8a4edab40d70dfbfba8bbd25193a [diff] |
Backport some new `Protocol` tests from CPython (#227)
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
.