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.
- Sources inherited from project devel:languages:python
- Devel package for openSUSE:Factory
-
20
derived packages
- Links to openSUSE:Factory / python-typing_extensions
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Tomcat42/python-typing_extensions && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
_link | 0000000124 124 Bytes | |
_multibuild | 0000000053 53 Bytes | |
python-typing_extensions.changes | 0000024268 23.7 KB | |
python-typing_extensions.spec | 0000003418 3.34 KB | |
typing_extensions-4.10.0.tar.gz | 0000077558 75.7 KB |
Revision 54 (latest revision is 57)
- update to 4.10.0: This feature release adds support for PEP 728 (TypedDict with extra items) and PEP 742 (``TypeIs``). - Add support for PEP 728, supporting the `closed` keyword argument and the special `__extra_items__` key for TypedDict. Patch by Zixuan James Li. - Add support for PEP 742, adding `typing_extensions.TypeIs`. Patch by Jelle Zijlstra. - Drop runtime error when a read-only `TypedDict` item overrides a mutable one. Type checkers should still flag this as an error. Patch by Jelle Zijlstra. - Speedup `issubclass()` checks against simple runtime-checkable protocols by around 6% (backporting https://github.com/python/cpython/pull/112717, by Alex Waygood). - Fix a regression in the implementation of protocols where `typing.Protocol` classes that were not marked as `@runtime_checkable` would be unnecessarily introspected, potentially causing exceptions to be raised if the protocol had problematic members. Patch by Alex Waygood, backporting https://github.com/python/cpython/pull/113401. - obsoletes backport-recent-implementation-of-protocol.patch
Comments 0