]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118814: Fix the TypeVar constructor when name is passed by keyword (GH-122664)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 7 Aug 2024 20:30:10 +0000 (23:30 +0300)
committerGitHub <noreply@github.com>
Wed, 7 Aug 2024 20:30:10 +0000 (23:30 +0300)
commit540fcc62f5da982b79504221cac01bfab8b73ba1
tree0e5b279cb9f2f358197a673ddf7a5a7959c07209
parente73e7a7abdc3fed252affcb1629df1b3c8fff2ef
gh-118814: Fix the TypeVar constructor when name is passed by keyword (GH-122664)

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.
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