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 /Lib/test/test_asyncio/test_protocols.py | |
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 'Lib/test/test_asyncio/test_protocols.py')
0 files changed, 0 insertions, 0 deletions