Backported and Experimental Type Hints for Python 3.5+
Typing Extensions – Backported and Experimental Type Hints for Python
The typing module was added to the standard library in Python 3.5 on a provisional basis and will no longer be provisional in Python 3.7. However, this means users of Python 3.5 - 3.6 who are unable to upgrade will not be able to take advantage of new types added to the typing module, such as typing.Text or typing.Coroutine.
The typing_extensions module contains both backports of these changes as well as experimental types that will eventually be added to the typing module, such as Protocol.
Users of other Python versions should continue to install and use the typing module from PyPi instead of using this one unless specifically writing code that must be compatible with multiple Python versions or requires experimental types.
- Developed at devel:languages:python
- Sources inherited from project openSUSE:Factory
-
11
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:seife:Factory/python-typing_extensions && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
_multibuild | 0000000053 53 Bytes | |
python-typing_extensions.changes | 0000022754 22.2 KB | |
python-typing_extensions.spec | 0000003375 3.3 KB | |
typing_extensions-4.9.0.tar.gz | 0000074918 73.2 KB |
Revision 22 (latest revision is 25)
- update to 4.9.0: * This feature release adds `typing_extensions.ReadOnly`, as specified by PEP 705, and makes various other improvements, especially to `@typing_extensions.deprecated()`. * Add support for PEP 705, adding `typing_extensions.ReadOnly`. * All parameters on `NewType.__call__` are now positional-only. This means that the signature of `typing_extensions.NewType.__call__` now exactly matches the * signature of `typing.NewType.__call__`. * Fix bug with using `@deprecated` on a mixin class. * Exclude `__match_args__` from `Protocol` members. * When creating a `typing_extensions.NamedTuple` class, ensure `__set_name__` is called on all objects that define `__set_name__` and exist in the values of the `NamedTuple` class's class dictionary. * Support most use cases for PEP 612 with Generic - add transitional typing-extensions provides * Fix tests for Python 3.9
Comments 0