diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-02 07:08:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 07:08:24 (GMT) |
commit | c8db292012dd84aab81eb3ed9146709696a3d290 (patch) | |
tree | 0498ea32c9bf6ec748b2b06ad083684210e00317 /Misc | |
parent | b192fb3f6a99c33f664e27395ffc0cef4dbc8d29 (diff) | |
download | cpython-c8db292012dd84aab81eb3ed9146709696a3d290.zip cpython-c8db292012dd84aab81eb3ed9146709696a3d290.tar.gz cpython-c8db292012dd84aab81eb3ed9146709696a3d290.tar.bz2 |
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.
(cherry picked from commit f92b9133ef67e77605cbd315b6b6c81036ce110e)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-07-31-20-28-20.bpo-44793.woaQSg.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-07-31-20-28-20.bpo-44793.woaQSg.rst b/Misc/NEWS.d/next/Library/2021-07-31-20-28-20.bpo-44793.woaQSg.rst new file mode 100644 index 0000000..1d94d67 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-07-31-20-28-20.bpo-44793.woaQSg.rst @@ -0,0 +1,2 @@ +Fix checking the number of arguments when subscribe a generic type with +``ParamSpec`` parameter. |