commit | 4fcf36af79cb560539a25000a2b0561d6cd317ec | [log] [tgz] |
---|---|---|
author | Alex Waygood <Alex.Waygood@Gmail.com> | Thu Jun 08 11:34:35 2023 +0100 |
committer | GitHub <noreply@github.com> | Thu Jun 08 12:34:35 2023 +0200 |
tree | 58ec8b15376dd4e9f132553f5fe69034e1cc8355 | |
parent | 159a0a69d209dc5de618f6f74a823c07f0111139 [diff] |
Reduce duplication in definitions of various special forms (#228)
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
.