From e1250ff869e7ee5ad05170d8a4b65469f13801c3 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 7 Jun 2024 19:48:59 +0100 Subject: [PATCH] Prepare release 4.12.2 (#426) --- CHANGELOG.md | 3 ++- pyproject.toml | 2 +- src/test_typing_extensions.py | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 776a101..90f5b68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ -# Unreleased +# Release 4.12.2 (June 7, 2024) - Fix regression in v4.12.0 where specialization of certain generics with an overridden `__eq__` method would raise errors. Patch by Jelle Zijlstra. +- Fix tests so they pass on 3.13.0b2 # Release 4.12.1 (June 1, 2024) diff --git a/pyproject.toml b/pyproject.toml index e15c923..3388d55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi" # Project metadata [project] name = "typing_extensions" -version = "4.12.1" +version = "4.12.2" description = "Backported and Experimental Type Hints for Python 3.8+" readme = "README.md" requires-python = ">=3.8" diff --git a/src/test_typing_extensions.py b/src/test_typing_extensions.py index bf7600a..2f98765 100644 --- a/src/test_typing_extensions.py +++ b/src/test_typing_extensions.py @@ -6617,7 +6617,10 @@ def test_allow_default_after_non_default_in_alias(self): a4 = Callable[[Unpack[Ts]], T] self.assertEqual(a4.__args__, (Unpack[Ts], T)) - @skip_if_py313_beta_1 + @skipIf( + typing_extensions.Protocol is typing.Protocol, + "Test currently fails with the CPython version of Protocol and that's not our fault" + ) def test_generic_with_broken_eq(self): # See https://github.com/python/typing_extensions/pull/422 for context class BrokenEq(type):