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
_typed_dict_test_helper.py 0000000178 178 Bytes
python-typing_extensions.changes 0000009505 9.28 KB
python-typing_extensions.spec 0000003410 3.33 KB
typing_extensions-4.4.0.tar.gz 0000049708 48.5 KB
Revision 16 (latest revision is 25)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1031001 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 16)
- Clean specfile from old cruft.
- Requires Python 3.7+
- Fix testsuite: Must test as module; don't need multibuild.
- Update Summary and Description
- Update to version 4.4.0
  * Add `typing_extensions.Any` a backport of python 3.11's Any class which is
    subclassable at runtime. (backport from python/cpython#31841, by Shantanu
    and Jelle Zijlstra). Patch by James Hilton-Balfe (@Gobot1234).
  * Add initial support for TypeVarLike `default` parameter, PEP 696.
    Patch by Marc Mueller (@cdce8p).
  * Runtime support for PEP 698, adding `typing_extensions.override`. Patch by
    Jelle Zijlstra.
  * Add the `infer_variance` parameter to `TypeVar`, as specified in PEP 695.
    Patch by Jelle Zijlstra.
Comments 0
openSUSE Build Service is sponsored by