]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99344, gh-99379, gh-99382: Fix issues in substitution of ParamSpec and TypeVarTupl...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 29 Nov 2022 07:46:52 +0000 (09:46 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Nov 2022 07:46:52 +0000 (09:46 +0200)
commit8f2fb7dfe72c882e97e524ef7ce40ceb663cc27e
tree0ab80aba81b2c351a33b32c599f1c55b5ed3b562
parent1d1bb95abdcafe92c771fb3dc4722351b032cc24
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.
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]