| commit | fd1f8538dfc79e11ae9b46af96397a60c680e24c | [log] [tgz] |
|---|---|---|
| author | Alex Waygood <Alex.Waygood@Gmail.com> | Sat Jun 17 14:41:08 2023 +0100 |
| committer | GitHub <noreply@github.com> | Sat Jun 17 06:41:08 2023 -0700 |
| tree | d66ce7d29124aafcfc3087d9b9ba5a0f406af650 | |
| parent | af89916a21b0b720b413e5618dd119f55c53f7b7 [diff] |
Add a few more tests for interactions between `typing.Protocol` and `typing_extensions.Protocol` (#244)
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.