]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-118814: Fix the TypeVar constructor when name is passed by keyword (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 8 Aug 2024 06:49:50 +0000 (09:49 +0300)
committerGitHub <noreply@github.com>
Thu, 8 Aug 2024 06:49:50 +0000 (09:49 +0300)
commitf2cc8ad989ba1039f69b62f92c2eb700d142e285
tree7b8e4f6be09a96d22c962ea6412ea934760b22bb
parent8f4892ac529b8f7f32d9707eb713300188247b7b
[3.12] gh-118814: Fix the TypeVar constructor when name is passed by keyword (GH-122664) (GH-122807)

Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for
positional-or-keyword parameter is passed by keyword.
There was only one such case in the stdlib -- the TypeVar constructor.
(cherry picked from commit 540fcc62f5da982b79504221cac01bfab8b73ba1)
Lib/test/test_clinic.py
Lib/test/test_typing.py
Misc/NEWS.d/next/Library/2024-08-04-14-07-18.gh-issue-118814.uiyks1.rst [new file with mode: 0644]
Modules/_testclinic.c
Modules/clinic/_testclinic.c.h
Python/getargs.c