]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-138479: Ensure that `__typing_subst__` returns a tuple (GH-138482)
authorPeter Bierma <zintensitydev@gmail.com>
Thu, 11 Sep 2025 10:39:09 +0000 (06:39 -0400)
committerGitHub <noreply@github.com>
Thu, 11 Sep 2025 10:39:09 +0000 (06:39 -0400)
commit1da989be74eaa94590ec28e750e5352de1ead227
tree7c66620af5889f175d5e48d4044da7ae078e384e
parent011179a79a0d7b93ce074b25b0819e96b6dd3315
gh-138479: Ensure that `__typing_subst__` returns a tuple (GH-138482)

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

---------

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