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

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