commit | 88a7f68a21f2b14bfd944723a51e34d5a04f973a | [log] [tgz] |
---|---|---|
author | Alex Waygood <Alex.Waygood@Gmail.com> | Wed May 24 01:26:40 2023 +0100 |
committer | GitHub <noreply@github.com> | Tue May 23 17:26:40 2023 -0700 |
tree | 920989fb036803f97a03e3534c041a05cbf6bd21 | |
parent | b306e56bee23891332a4ddde66675c34d7c527f7 [diff] |
Have `Protocol` inherit from `typing.Generic` on 3.8+ (#184)
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
.