]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44791: Fix substitution of ParamSpec in Concatenate with different parameter...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 27 Jan 2022 13:01:24 +0000 (05:01 -0800)
committerGitHub <noreply@github.com>
Thu, 27 Jan 2022 13:01:24 +0000 (05:01 -0800)
commit89db09029566cf3af04b540e33fe1ff9b32f8c8b
tree55e2f559e973155983f8505ee082925ca7834a85
parent2572c670d42887e4b1d2475b8da2e9bf6e0aa558
bpo-44791: Fix substitution of ParamSpec in Concatenate with different parameter expressions (GH-27518)

* Substitution with a list of types returns now a tuple of types.
* Substitution with Concatenate returns now a Concatenate with
  concatenated lists of arguments.
* Substitution with Ellipsis is not supported.
(cherry picked from commit ecfacc362dd7fef7715dcd94f2e2ca6c622ef115)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/_collections_abc.py
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2021-07-31-23-18-50.bpo-44791.4jFdpO.rst [new file with mode: 0644]