]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99344, gh-99379, gh-99382: Fix issues in substitution of ParamSpec and TypeVarTupl...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 29 Nov 2022 14:46:53 +0000 (06:46 -0800)
committerGitHub <noreply@github.com>
Tue, 29 Nov 2022 14:46:53 +0000 (06:46 -0800)
commit74920aa27d0c57443dd7f704d6272cca9c507ab3
tree81537f85c9a9edce6420d2ffa5a25b5722e52140
parent5bbf8ed8fbca0d68144c7b317ea8550420ac2594
gh-99344, gh-99379, gh-99382: Fix issues in substitution of ParamSpec and TypeVarTuple (GH-99412)

* Fix substitution of TypeVarTuple and ParamSpec together in user generics.

* Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases.

* Check the number of arguments in substitution in user generics containing a
  TypeVarTuple and one or more TypeVar.
(cherry picked from commit 8f2fb7dfe72c882e97e524ef7ce40ceb663cc27e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2022-11-12-12-08-34.gh-issue-99344.7M_u8G.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2022-11-12-12-10-23.gh-issue-99379.bcGhxF.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2022-11-12-12-15-30.gh-issue-99382.dKg_rW.rst [new file with mode: 0644]