commit | 9648c6ffb2a3fa07907d853c4d74d4894e9dd1ad | [log] [tgz] |
---|---|---|
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | Sun May 21 17:49:09 2023 -0700 |
committer | GitHub <noreply@github.com> | Sun May 21 17:49:09 2023 -0700 |
tree | a0519c9459cb3fc85be558901c57a1cfa966b200 | |
parent | f2fc4cb99a2980a228b99e3b447da09be0d31942 [diff] |
add infer_variance for ParamSpec (#172) For compatibility with Python 3.12, which adds this undocumented parameter along with the existing covariant/contravariant ones. Intentionally leaving this undocumented: it's here in case we want to make variance on ParamSpec mean something later, but it currently has no supported use.
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
.