]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-138479: Ensure that `__typing_subst__` returns a tuple (GH-138482) (GH...
authorPeter Bierma <zintensitydev@gmail.com>
Thu, 11 Sep 2025 11:08:57 +0000 (07:08 -0400)
committerGitHub <noreply@github.com>
Thu, 11 Sep 2025 11:08:57 +0000 (11:08 +0000)
commite7720612eafd4b049892e83da3239447b57b9a6e
tree4055f776b250c739796a38931bbc3802b5957670
parent7195d7f3d4c79f3711ede2e504c19bedc39aa3ad
[3.13] gh-138479: Ensure that `__typing_subst__` returns a tuple (GH-138482) (GH-138786)

* gh-138479: Ensure that `__typing_subst__` returns a tuple (GH-138482)

Raise an exception if __typing_subst__ returns a non-tuple object.

(cherry picked from commit 1da989be74eaa94590ec28e750e5352de1ead227)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_typing.py
Misc/NEWS.d/next/Core_and_Builtins/2025-09-03-17-00-30.gh-issue-138479.qUxgWs.rst [new file with mode: 0644]
Objects/genericaliasobject.c