commit | 773090f43cb4684fda67e3fcd0badf7abcd10ba9 | [log] [tgz] |
---|---|---|
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | Mon May 22 15:48:00 2023 -0700 |
committer | GitHub <noreply@github.com> | Mon May 22 15:48:00 2023 -0700 |
tree | 73ef6787f1c065021d5369d5b21ab860f9e87483 | |
parent | bbfd0ccbe2265d771c6e7ec8454e5bbe051efd79 [diff] |
Remove __module__ assignment for TypeVar and friends (#175)
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
.