typing_extensions icon indicating copy to clipboard operation
typing_extensions copied to clipboard

Backported and experimental type hints for Python

Results 49 typing_extensions issues
Sort by recently updated
recently updated
newest added

Part of #564. Draft because: - Need to figure out what to do with https://github.com/python/cpython/pull/128930 - I'd like to do another bugfix release first and some of these changes seem...

More information: https://bugzilla.redhat.com/show_bug.cgi?id=2336937 Log: ``` + /usr/bin/python3 -m unittest discover ................................................................../builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:885: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead self.assertFalse(asyncio.coroutines.iscoroutinefunction(func)) /builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:886: DeprecationWarning: 'asyncio.iscoroutinefunction' is...

Run listed here: https://github.com/python/typing_extensions/actions/runs/13937772144

In 3.14, I added a function to `annotationlib` to format type-like values, so you get e.g. `int` instead of ``: https://docs.python.org/3.14/library/annotationlib.html#annotationlib.value_to_string I think this would be useful in typing-extensions too,...

A while ago to do some tests I wanted to upgrade my current `typing_extensions` version to the current GitHub version by using `pip install git+https://github.com/python/typing_extensions.git`. I also blame `pip` here...

Getting typing-extensions to 100% test coverage seems like a realistic and useful goal. Doing this ensures that we have thorough tests and also gives more confidence when adding new code....

Equivalence between `typing` and `typing_extensions` is something I do not expect, however I think the following example is an exception as the non-equivalence comes as a surprise: ```python # python...

# Work MRE. ## Setup ```shell >> python version: 3.13.5 (main, Jun 21 2025, 09:35:00) [GCC 15.1.1 20250425] ``` ## MRE ```py from typing import TypeVar, Generic, get_args R =...

Discovered through CPython 3.14 test_typing.py: https://github.com/JanEricNitschke/typing_extensions/actions/runs/17619859892/job/50062609198#step:7:44 Tests and code are directly taken from CPython 3.14. Tests: https://github.com/python/cpython/blob/3.14/Lib/test/test_typing.py#L8616 Code: https://github.com/python/cpython/blob/3.14/Lib/typing.py#L3139 Except that i omitted the raising of the `TypeError` when overwriting...

Issue discovered by running CPython 3.12 test_typing.py on typing_extensions: https://github.com/JanEricNitschke/typing_extensions/actions/runs/17692936537/job/50288896717#step:7:120 Test from here: https://github.com/python/cpython/blob/main/Lib/test/test_typing.py#L1526 Regex from here (adjusted to also handle typing_extensions): https://github.com/python/cpython/blob/main/Lib/test/test_typing.py#L61