FAIL: test_alias_names_still_exist (test_typing_extensions.AllTests.test_alias_names_still_exist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6895, in test_alias_names_still_exist
self.assertTrue(
~~~~~~~~~~~~~~~^
hasattr(typing_extensions, name),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f"{name} no longer exists in typing",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
AssertionError: False is not true : no_type_check_decorator no longer exists in typing
======================================================================
FAIL: test_all_names_in___all__ (test_typing_extensions.AllTests.test_all_names_in___all__)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6854, in test_all_names_in___all__
self.assertEqual({*exclude, *typing_extensions.__all__},
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
actual_names)
^^^^^^^^^^^^^
AssertionError: Items in the first set but not the second:
'no_type_check_decorator'
======================================================================
FAIL: test_typing_extensions_includes_standard (test_typing_extensions.AllTests.test_typing_extensions_includes_standard)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6836, in test_typing_extensions_includes_standard
self.assertTrue(hasattr(typing_extensions, name))
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: False is not true
Thank you, you are right. Adjusting __all__ is not enough we need to also adjust _typing_names for the tests. I've added #723 and tested with 3.15.0a4 for the tests to pass.
Activity
hegjon commented on Nov 25, 2025
Related to python/typing#1425 ?
Daraan commented on Nov 25, 2025
Yes, or rather the follow up python/cpython#133602.
The follow up on typing_extensions is #699, which is not yet in a release.
hroncok commented on Jan 13, 2026
Even with #699 applied, test_alias_names_still_exist fails
====================================================================== FAIL: test_alias_names_still_exist (test_typing_extensions.AllTests.test_alias_names_still_exist) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/python-typing-extensions-4.15.0-build/typing_extensions-4.15.0/src/test_typing_extensions.py", line 6895, in test_alias_names_still_exist self.assertTrue( ~~~~~~~~~~~~~~~^ hasattr(typing_extensions, name), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ f"{name} no longer exists in typing", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ AssertionError: False is not true : no_type_check_decorator no longer exists in typing ----------------------------------------------------------------------Daraan commented on Jan 14, 2026
Thank you, you are right. Adjusting __all__ is not enough we need to also adjust _typing_names for the tests. I've added #723 and tested with 3.15.0a4 for the tests to pass.