Bug 2336937 - python-typing-extensions fails to build with Python 3.14: test_invalid_special_forms: AssertionError: TypeError not raised
Summary: python-typing-extensions fails to build with Python 3.14: test_invalid_specia...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-typing-extensions
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Jonny Heggheim
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-01-10 15:05 UTC by Karolina Surma
Modified: 2025-06-15 18:32 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-06-15 18:32:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources python-typing-extensions pull-request 21 0 None None None 2025-05-29 17:50:08 UTC
Github python typing_extensions issues 564 0 None open Unit tests fails under Python 3.14 2025-04-01 10:54:19 UTC
Github python typing_extensions issues 608 0 None open test_invalid_special_forms fails on Python 3.14.0b2 2025-05-27 19:00:28 UTC

Description Karolina Surma 2025-01-10 15:05:01 UTC
python-typing-extensions fails to build with Python 3.14.0a3.

FAIL: test_drop_in_for_typing (test_typing_extensions.AllTests.test_drop_in_for_typing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.12.2-build/typing_extensions-4.12.2/src/test_typing_extensions.py", line 5747, in test_drop_in_for_typing
    self.assertGreaterEqual(te_all, t_all - exceptions)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: {'NoDefault', 'get_protocol_members', 'overload', 'CapsuleType', 'MappingView', 'Generic', 'Unpack', 'SupportsComplex', 'SupportsAbs', 'NoReturn', 'Doc', 'Awaitable', 'Literal', 'NamedTuple', 'ParamSpecArgs', 'Final', 'ParamSpecKwargs', 'Pattern', 'Reversible', 'TYPE_CHECKING', 'Iterator', 'ReadOnly', 'AsyncIterable', 'override', 'Hashable', 'Collection', 'ItemsView', 'reveal_type', 'Iterable', 'NotRequired', 'ForwardRef', 'deprecated', 'MutableSequence', 'ChainMap', 'no_type_check', 'AbstractSet', 'Tuple', 'Generator', 'get_args', 'no_type_check_decorator', 'Annotated', 'is_typeddict', 'runtime', 'ContextManager', 'ValuesView', 'Self', 'TextIO', 'IntVar', 'SupportsFloat', 'SupportsBytes', 'dataclass_transform', 'MutableSet', 'AnyStr', 'assert_type', 'Union', 'TypeAliasType', 'Coroutine', 'get_original_bases', 'Deque', 'TypeVarTuple', 'get_type_hints', 'get_origin', 'BinaryIO', 'NewType', 'clear_overloads', 'DefaultDict', 'runtime_checkable', 'Match', 'OrderedDict', 'IO', 'List', 'Required', 'is_protocol', 'Text', 'Set', 'TypeGuard', 'Callable', 'Never', 'AsyncGenerator', 'Container', 'Protocol', 'FrozenSet', 'Buffer', 'AsyncContextManager', 'Counter', 'TypedDict', 'LiteralString', 'Mapping', 'Sized', 'get_overloads', 'AsyncIterator', 'Type', 'SupportsRound', 'ClassVar', 'TypeVar', 'final', 'cast', 'Any', 'Optional', 'TypeAlias', 'assert_never', 'MutableMapping', 'TypeIs', 'SupportsIndex', 'Sequence', 'SupportsInt', 'ParamSpec', 'Concatenate', 'Dict', 'KeysView'} not greater than or equal to {'NoDefault', 'clear_overloads', 'get_protocol_members', 'overload', 'DefaultDict', 'evaluate_forward_ref', 'runtime_checkable', 'Match', 'MappingView', 'Generic', 'OrderedDict', 'IO', 'Unpack', 'List', 'Required', 'SupportsComplex', 'SupportsAbs', 'NoReturn', 'is_protocol', 'Awaitable', 'Text', 'Literal', 'Set', 'NamedTuple', 'TypeGuard', 'ParamSpecArgs', 'Callable', 'Never', 'Final', 'ParamSpecKwargs', 'Pattern', 'NewType', 'Reversible', 'AsyncGenerator', 'Container', 'Protocol', 'FrozenSet', 'TYPE_CHECKING', 'Iterator', 'ReadOnly', 'AsyncIterable', 'override', 'Hashable', 'Collection', 'AsyncContextManager', 'Counter', 'TypedDict', 'ItemsView', 'Iterable', 'reveal_type', 'Mapping', 'LiteralString', 'NotRequired', 'Sized', 'ForwardRef', 'get_overloads', 'AsyncIterator', 'MutableSequence', 'Type', 'ChainMap', 'no_type_check', 'AbstractSet', 'SupportsRound', 'Tuple', 'Generator', 'get_args', 'no_type_check_decorator', 'ClassVar', 'Annotated', 'is_typeddict', 'TypeVar', 'cast', 'final', 'ContextManager', 'Any', 'ValuesView', 'Optional', 'TypeAlias', 'assert_never', 'Self', 'MutableMapping', 'TextIO', 'TypeIs', 'SupportsIndex', 'Sequence', 'SupportsInt', 'SupportsFloat', 'SupportsBytes', 'dataclass_transform', 'MutableSet', 'ParamSpec', 'AnyStr', 'Concatenate', 'assert_type', 'Dict', 'Union', 'TypeAliasType', 'KeysView', 'Coroutine', 'Deque', 'TypeVarTuple', 'get_type_hints', 'get_origin', 'BinaryIO'}

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08480328-python-typing-extensions/

For all our attempts to build python-typing-extensions with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-typing-extensions/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Ben Beasley 2025-01-10 15:57:56 UTC
I get quite a few errors if I try this:

$ git clone https://github.com/python/typing_extensions.git
$ cd typing_extensions
$ git checkout 4.12.2
$ tox -e py314
.pkg: _optional_hooks> python /usr/lib/python3.13/site-packages/pyproject_api/_backend.py True flit_core.buildapi
.pkg: get_requires_for_build_sdist> python /usr/lib/python3.13/site-packages/pyproject_api/_backend.py True flit_core.buildapi
.pkg: build_sdist> python /usr/lib/python3.13/site-packages/pyproject_api/_backend.py True flit_core.buildapi
py314: install_package> python -I -m pip install --force-reinstall --no-deps /home/ben/src/forks/typing_extensions/.tox/.tmp/package/2/typing_extensions-4.12.2.tar.gz
py314: commands[0] /home/ben/src/forks/typing_extensions/src> python -m unittest discover
.F................................................................/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py:880: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertFalse(asyncio.coroutines.iscoroutinefunction(func))
/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py:881: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertFalse(asyncio.coroutines.iscoroutinefunction(Cls.func))
/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py:882: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(asyncio.coroutines.iscoroutinefunction(coro))
/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py:883: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(asyncio.coroutines.iscoroutinefunction(Cls.coro))
......................................................................................................s..s..s................................................................................................................................................................EEEFEEFE.EE..............................s.................................s.........................................s.s...............................s...........
======================================================================
ERROR: test_format (test_typing_extensions.TestGetAnnotations.test_format)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 7945, in test_format
    get_annotations(f2, format=Format.FORWARDREF),
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_modify_annotations (test_typing_extensions.TestGetAnnotations.test_modify_annotations)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 8268, in test_modify_annotations
    get_annotations(f, format=Format.FORWARDREF),
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stock_annotations (test_typing_extensions.TestGetAnnotations.test_stock_annotations) (format=<Format.FORWARDREF: 2>)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 7988, in test_stock_annotations
    get_annotations(foo, format=format),
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stock_annotations_in_module (test_typing_extensions.TestGetAnnotations.test_stock_annotations_in_module) (format=<Format.FORWARDREF: 2>)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 8026, in test_stock_annotations_in_module
    get_annotations(isa, **kwargs), {"a": int, "b": str}
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stock_annotations_in_module (test_typing_extensions.TestGetAnnotations.test_stock_annotations_in_module) (format=<Format.FORWARDREF: 2>, eval_str=False)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 8026, in test_stock_annotations_in_module
    get_annotations(isa, **kwargs), {"a": int, "b": str}
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stock_annotations_on_wrapper (test_typing_extensions.TestGetAnnotations.test_stock_annotations_on_wrapper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 8139, in test_stock_annotations_on_wrapper
    get_annotations(wrapped, format=Format.FORWARDREF), 
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stringized_annotations_in_module (test_typing_extensions.TestGetAnnotations.test_stringized_annotations_in_module) (format=<Format.FORWARDREF: 2>)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 8170, in test_stringized_annotations_in_module
    get_annotations(isa, **kwargs), {"a": "int", "b": "str"}
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stringized_annotations_in_module (test_typing_extensions.TestGetAnnotations.test_stringized_annotations_in_module) (format=<Format.FORWARDREF: 2>, eval_str=False)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 8170, in test_stringized_annotations_in_module
    get_annotations(isa, **kwargs), {"a": "int", "b": "str"}
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
FAIL: test_drop_in_for_typing (test_typing_extensions.AllTests.test_drop_in_for_typing)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 6292, in test_drop_in_for_typing
    self.assertGreaterEqual(te_all, t_all - exceptions)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: {'get_overloads', 'runtime', 'ForwardRef', 'Self', 'Callable', 'ChainMap', 'Collection', 'BinaryIO', 'ItemsView', 'TextIO', 'Sized', 'List', 'Match', 'Any', 'Annotated', 'overload', 'TypeIs', 'Unpack', 'SupportsFloat', 'Generic', 'Final', 'Union', 'TypeGuard', 'no_type_check', 'Type', 'reveal_type', 'NamedTuple', 'Deque', 'AsyncIterator', 'ContextManager', 'IntVar', 'Iterator', 'Required', 'MutableMapping', 'CapsuleType', 'NewType', 'ReadOnly', 'runtime_checkable', 'dataclass_transform', 'SupportsBytes', 'MappingView', 'ClassVar', 'is_typeddict', 'Counter', 'Literal', 'Format', 'TypeAliasType', 'TypedDict', 'LiteralString', 'override', 'Sequence', 'SupportsRound', 'KeysView', 'TypeAlias', 'assert_never', 'IO', 'no_type_check_decorator', 'MutableSequence', 'AsyncGenerator', 'AnyStr', 'cast', 'Coroutine', 'SupportsInt', 'get_args', 'SupportsAbs', 'ParamSpecKwargs', 'get_origin', 'Text', 'SupportsComplex', 'TYPE_CHECKING', 'ValuesView', 'FrozenSet', 'Iterable', 'Never', 'Protocol', 'AbstractSet', 'MutableSet', 'deprecated', 'DefaultDict', 'SupportsIndex', 'TypeVar', 'final', 'Set', 'ParamSpecArgs', 'AsyncContextManager', 'Buffer', 'Generator', 'Optional', 'TypeVarTuple', 'Hashable', 'Concatenate', 'Tuple', 'get_annotations', 'Doc', 'Dict', 'TypeForm', 'assert_type', 'clear_overloads', 'get_protocol_members', 'Mapping', 'AsyncIterable', 'NoReturn', 'Pattern', 'get_type_hints', 'is_protocol', 'Reversible', 'Awaitable', 'NotRequired', 'Container', 'ParamSpec', 'NoDefault', 'OrderedDict', 'get_original_bases'} not greater than or equal to {'KeysView', 'TypeAlias', 'get_overloads', 'ForwardRef', 'Self', 'Callable', 'assert_never', 'IO', 'no_type_check_decorator', 'MutableSequence', 'AsyncGenerator', 'AnyStr', 'cast', 'Coroutine', 'SupportsInt', 'get_args', 'SupportsAbs', 'ChainMap', 'Collection', 'BinaryIO', 'ParamSpecKwargs', 'get_origin', 'Text', 'ItemsView', 'TextIO', 'Sized', 'SupportsComplex', 'List', 'Match', 'Any', 'TYPE_CHECKING', 'ValuesView', 'FrozenSet', 'Annotated', 'Iterable', 'overload', 'Never', 'TypeIs', 'Protocol', 'AbstractSet', 'Unpack', 'SupportsFloat', 'Generic', 'Final', 'MutableSet', 'Union', 'TypeGuard', 'DefaultDict', 'SupportsIndex', 'no_type_check', 'Type', 'TypeVar', 'final', 'Set', 'ParamSpecArgs', 'AsyncContextManager', 'reveal_type', 'NamedTuple', 'Optional', 'Generator', 'Deque', 'TypeVarTuple', 'ContextManager', 'Iterator', 'AsyncIterator', 'Required', 'Hashable', 'MutableMapping', 'Concatenate', 'Tuple', 'NewType', 'Dict', 'ReadOnly', 'assert_type', 'clear_overloads', 'get_protocol_members', 'runtime_checkable', 'Mapping', 'AsyncIterable', 'dataclass_transform', 'SupportsBytes', 'NoReturn', 'Pattern', 'get_type_hints', 'is_protocol', 'MappingView', 'Reversible', 'ClassVar', 'is_typeddict', 'Awaitable', 'Counter', 'NotRequired', 'Literal', 'Container', 'ParamSpec', 'evaluate_forward_ref', 'TypeAliasType', 'NoDefault', 'OrderedDict', 'TypedDict', 'LiteralString', 'override', 'Sequence', 'SupportsRound'}

======================================================================
FAIL: test_stock_annotations (test_typing_extensions.TestGetAnnotations.test_stock_annotations)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 7991, in test_stock_annotations
    self.assertEqual(
    ~~~~~~~~~~~~~~~~^
        get_annotations(foo, format=Format.SOURCE),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        {"a": "int", "b": "str"},
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: {'a': <class 'int'>, 'b': <class 'str'>} != {'a': 'int', 'b': 'str'}
- {'a': <class 'int'>, 'b': <class 'str'>}
?       -------     -      -------      -

+ {'a': 'int', 'b': 'str'}

======================================================================
FAIL: test_stock_annotations_in_module (test_typing_extensions.TestGetAnnotations.test_stock_annotations_in_module)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ben/src/forks/typing_extensions/src/test_typing_extensions.py", line 8086, in test_stock_annotations_in_module
    self.assertEqual(
    ~~~~~~~~~~~~~~~~^
        get_annotations(isa, format=Format.SOURCE),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        {"a": "int", "b": "str"},
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: {'a': <class 'int'>, 'b': <class 'str'>} != {'a': 'int', 'b': 'str'}
- {'a': <class 'int'>, 'b': <class 'str'>}
?       -------     -      -------      -

+ {'a': 'int', 'b': 'str'}

----------------------------------------------------------------------
Ran 494 tests in 0.243s

FAILED (failures=3, errors=8, skipped=8)
py314: exit 1 (0.53 seconds) /home/ben/src/forks/typing_extensions/src> python -m unittest discover pid=672564
.pkg: _exit> python /usr/lib/python3.13/site-packages/pyproject_api/_backend.py True flit_core.buildapi
  py314: FAIL code 1 (3.11=setup[2.59]+cmd[0.53] seconds)
  evaluation failed :( (3.20 seconds)

Everything works fine with Python 3.13.

Comment 2 Ben Beasley 2025-01-10 16:08:07 UTC
The errors with VALUE_WITH_FAKE_GLOBALS are related to PEP 649, https://github.com/python/cpython/issues/119180. There is an unreleased commit https://github.com/python/typing_extensions/commit/ece1201226c557f7328638e065b4a6c5ec4e13ce related to this, but I still see the same failures and errors on the main branch upstream.

Comment 3 Aoife Moloney 2025-02-26 13:22:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 4 Jonny Heggheim 2025-04-01 10:14:18 UTC
python-typing-extensions 4.13.0 have been built for rawhide, I have NOT checked if this issue is fixed

Comment 5 Miro Hrončok 2025-04-01 10:23:46 UTC
+ /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 deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertFalse(asyncio.coroutines.iscoroutinefunction(Cls.func))
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:887: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(asyncio.coroutines.iscoroutinefunction(coro))
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:888: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
  self.assertTrue(asyncio.coroutines.iscoroutinefunction(Cls.coro))
.......................................................................................................s..s..s............................................................................................................................................................./builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8758: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("Tx"))
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8762: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("Tx"), owner=int)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8769: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("Tx"), owner=Gen), Tx)
E/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8721: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("doesntexist"))
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8723: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(ref, format=Format.FORWARDREF), ref)
E/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8808: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("int")), int)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8810: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("int", module="collections")), int)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8811: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("int"), owner=str), int)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8814: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("int"), globals={}), int)
./builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8824: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(fr)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8825: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(fr, globals={"hello": str}), str)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8826: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(fr), str)
./builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8819: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("int"), globals={"int": obj}), obj)
./builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8796: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("Counter", module="collections")), collections.Counter
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8799: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("Counter[int]", module="collections")),
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8805: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("Format", module="annotationlib"), globals={})
./builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8831: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("Counter[int]"), owner=collections),
../builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8892: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("Protocol"), globals=vars(typing))
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8896: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("Generic"), globals=vars(typing))
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8898: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("Final"), globals=vars(typing))
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8900: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("ClassVar"), globals=vars(typing))
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8902: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("Final", is_class=True), globals=vars(typing)), Final)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8903: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("ClassVar", is_class=True), globals=vars(typing)), ClassVar)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8905: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("Final", is_argument=False), globals=vars(typing))
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8907: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("ClassVar", is_argument=False), globals=vars(typing))
./builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8838: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("int")), int)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8839: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("int"), locals={"int": str}), str)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8841: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluate_forward_ref(typing.ForwardRef("int"), locals={"int": float}, globals={"int": str}),
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8844: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("int"), globals={"int": str}), str)
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8849: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  self.assertIs(evaluate_forward_ref(typing.ForwardRef("int")), dict)
./builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8861: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluated_ref1a = evaluate_forward_ref(typing.ForwardRef("Y[Y['Tx']]"), locals={"Y": Y, "Tx": Tx})
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8872: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluated_ref2 = evaluate_forward_ref(typing.ForwardRef("""Y["Y['Tx']"]"""), locals={"Y": Y})
/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py:8880: DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 'typing.evaluate_forward_ref' is deprecated, as it leads to incorrect behaviour when calling typing.evaluate_forward_ref on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.
  evaluated_ref3 = evaluate_forward_ref(typing.ForwardRef("""Y['Z["StrAlias"]']"""), locals={"Y": Y, "Z": Z, "StrAlias": str})
....EEEFEEFE.EE..............................s.................................s..................F......................s.s...ss...ssss.....s......................s............
======================================================================
ERROR: test_evaluate_with_type_params (test_typing_extensions.TestEvaluateForwardRefs.test_evaluate_with_type_params)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8769, in test_evaluate_with_type_params
    self.assertIs(evaluate_forward_ref(typing.ForwardRef("Tx"), owner=Gen), Tx)
                  ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/typing.py", line 1001, in evaluate_forward_ref
    value = forward_ref.evaluate(globals=globals, locals=locals,
                                 type_params=type_params, owner=owner)
  File "/usr/lib64/python3.14/annotationlib.py", line 172, in evaluate
    raise NameError(arg)
NameError: Tx

======================================================================
ERROR: test_forward_ref_fallback (test_typing_extensions.TestEvaluateForwardRefs.test_forward_ref_fallback)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8723, in test_forward_ref_fallback
    self.assertIs(evaluate_forward_ref(ref, format=Format.FORWARDREF), ref)
                  ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/typing.py", line 1001, in evaluate_forward_ref
    value = forward_ref.evaluate(globals=globals, locals=locals,
                                 type_params=type_params, owner=owner)
  File "/usr/lib64/python3.14/annotationlib.py", line 172, in evaluate
    raise NameError(arg)
NameError: doesntexist

======================================================================
ERROR: test_format (test_typing_extensions.TestGetAnnotations.test_format)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8190, in test_format
    get_annotations(f2, format=Format.FORWARDREF),
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_modify_annotations (test_typing_extensions.TestGetAnnotations.test_modify_annotations)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8513, in test_modify_annotations
    get_annotations(f, format=Format.FORWARDREF),
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stock_annotations (test_typing_extensions.TestGetAnnotations.test_stock_annotations) (format=<Format.FORWARDREF: 2>)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8233, in test_stock_annotations
    get_annotations(foo, format=format),
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stock_annotations_in_module (test_typing_extensions.TestGetAnnotations.test_stock_annotations_in_module) (format=<Format.FORWARDREF: 2>)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8271, in test_stock_annotations_in_module
    get_annotations(isa, **kwargs), {"a": int, "b": str}
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stock_annotations_in_module (test_typing_extensions.TestGetAnnotations.test_stock_annotations_in_module) (format=<Format.FORWARDREF: 2>, eval_str=False)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8271, in test_stock_annotations_in_module
    get_annotations(isa, **kwargs), {"a": int, "b": str}
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stock_annotations_on_wrapper (test_typing_extensions.TestGetAnnotations.test_stock_annotations_on_wrapper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8384, in test_stock_annotations_on_wrapper
    get_annotations(wrapped, format=Format.FORWARDREF),
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stringized_annotations_in_module (test_typing_extensions.TestGetAnnotations.test_stringized_annotations_in_module) (format=<Format.FORWARDREF: 2>)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8415, in test_stringized_annotations_in_module
    get_annotations(isa, **kwargs), {"a": "int", "b": "str"}
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
ERROR: test_stringized_annotations_in_module (test_typing_extensions.TestGetAnnotations.test_stringized_annotations_in_module) (format=<Format.FORWARDREF: 2>, eval_str=False)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8415, in test_stringized_annotations_in_module
    get_annotations(isa, **kwargs), {"a": "int", "b": "str"}
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/annotationlib.py", line 733, in get_annotations
    raise ValueError("The VALUE_WITH_FAKE_GLOBALS format is for internal use only")
ValueError: The VALUE_WITH_FAKE_GLOBALS format is for internal use only

======================================================================
FAIL: test_stock_annotations (test_typing_extensions.TestGetAnnotations.test_stock_annotations)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8236, in test_stock_annotations
    self.assertEqual(
    ~~~~~~~~~~~~~~~~^
        get_annotations(foo, format=Format.STRING),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        {"a": "int", "b": "str"},
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: {'a': <class 'int'>, 'b': <class 'str'>} != {'a': 'int', 'b': 'str'}
- {'a': <class 'int'>, 'b': <class 'str'>}
?       -------     -      -------      -

+ {'a': 'int', 'b': 'str'}

======================================================================
FAIL: test_stock_annotations_in_module (test_typing_extensions.TestGetAnnotations.test_stock_annotations_in_module)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 8331, in test_stock_annotations_in_module
    self.assertEqual(
    ~~~~~~~~~~~~~~~~^
        get_annotations(isa, format=Format.STRING),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        {"a": "int", "b": "str"},
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: {'a': <class 'int'>, 'b': <class 'str'>} != {'a': 'int', 'b': 'str'}
- {'a': <class 'int'>, 'b': <class 'str'>}
?       -------     -      -------      -

+ {'a': 'int', 'b': 'str'}

======================================================================
FAIL: test_bound_errors (test_typing_extensions.TypeVarTests.test_bound_errors)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.13.0-build/typing_extensions-4.13.0/src/test_typing_extensions.py", line 7211, in test_bound_errors
    with self.assertRaises(TypeError):
         ~~~~~~~~~~~~~~~~~^^^^^^^^^^^
AssertionError: TypeError not raised

----------------------------------------------------------------------
Ran 516 tests in 0.150s

FAILED (failures=3, errors=10, skipped=15)

Comment 6 Jonny Heggheim 2025-04-01 10:54:20 UTC
Reported the issue upstream https://github.com/python/typing_extensions/issues/564

Comment 7 Ben Beasley 2025-04-04 09:31:08 UTC
Here is Jelle Zijlstra’s draft PR to fix this upstream: https://github.com/python/typing_extensions/pull/566

I’m not going to try to apply the draft PR as a patch because I think it will be finalized, merged, and released soon. The bugfix release mentioned in the PR already happened (4.13.1).

Comment 8 Karolina Surma 2025-05-13 14:29:33 UTC
https://src.fedoraproject.org/rpms/python-typing-extensions/pull-request/19 - I backported the two support patches to enable testing in Copr. If we suspect a new release soon, this can wait as a PR. Only if mass rebuild approaches and we'll want to push things faster, this may be handy.

Comment 9 Jonny Heggheim 2025-05-25 10:00:00 UTC
Updated to 4.14.0rc1 for rawhide.

Changelog: https://github.com/python/typing_extensions/blob/main/CHANGELOG.md

Comment 10 Miro Hrončok 2025-05-27 12:52:41 UTC
There is a new failure with Python 3.14.0b2:

https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-typing-extensions

+ /usr/bin/python3 -m unittest discover
................................................................................................................................................................................s......................................................................................................................................................................F...............................................s.................................s..........................................s.s...ss.....ssss.....s............................s............
======================================================================
FAIL: test_invalid_special_forms (test_typing_extensions.TestEvaluateForwardRefs.test_invalid_special_forms)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-typing-extensions-4.14.0_rc1-build/typing_extensions-4.14.0rc1/src/test_typing_extensions.py", line 9112, in test_invalid_special_forms
    with self.assertRaisesRegex(
         ~~~~~~~~~~~~~~~~~~~~~~^
        TypeError, r"Plain .*Protocol('>)? is not valid as type argument"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ):
    ^
AssertionError: TypeError not raised

----------------------------------------------------------------------
Ran 532 tests in 0.218s

FAILED (failures=1, skipped=13)

Comment 11 Miro Hrončok 2025-05-27 19:00:29 UTC
Reported upstream, reporoducible from git HEAD: https://github.com/python/typing_extensions/issues/608

Comment 12 Miro Hrončok 2025-05-28 08:31:48 UTC
A skip PR (for lack of a better option): https://src.fedoraproject.org/rpms/python-typing-extensions/pull-request/20


Note You need to log in before you can comment on or make changes to this bug.