commit | a2c6c887775adf1bda33fdc91722e6937bac7415 | [log] [tgz] |
---|---|---|
author | Alex Waygood <Alex.Waygood@Gmail.com> | Fri Jun 09 15:39:09 2023 +0100 |
committer | GitHub <noreply@github.com> | Fri Jun 09 07:39:09 2023 -0700 |
tree | 56f88e87e141018f7aa4169f6dd52f1894e3f62f | |
parent | d8265618f2a32c1dff7b2a3594cd2842fb8b6828 [diff] |
Don't reimplement `runtime_checkable` on py38+ (#194)
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
.