Backported and Experimental Type Hints for Python 3.5+

Edit Package python-typing_extensions

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.

Refresh
Refresh
Source Files
Filename Size Changed
_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)
Markéta Machová's avatar Markéta Machová (mcalabkova) accepted request 1152835 from Adrian Schröter's avatar Adrian Schröter (adrianSuSE) (revision 54)
- 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
openSUSE Build Service is sponsored by