]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44793: Fix checking the number of arguments when subscribe a generic type with...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 2 Aug 2021 06:17:46 +0000 (09:17 +0300)
committerGitHub <noreply@github.com>
Mon, 2 Aug 2021 06:17:46 +0000 (09:17 +0300)
commitf92b9133ef67e77605cbd315b6b6c81036ce110e
tree920ccba9a127a2202109c1ab7c70479d6921544b
parent208a7e957b812ad3b3733791845447677a704f3e
bpo-44793: Fix checking the number of arguments when subscribe a generic type with ParamSpec parameter. (GH-27515)

For example Callable[P, T][[int], str, float] will now raise an error.

Use also term "arguments" instead of "parameters" in error
message for too few/many arguments.
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2021-07-31-20-28-20.bpo-44793.woaQSg.rst [new file with mode: 0644]