Skip to content

Commit 8e0dac3

Browse files
authored
Correct _CallableGenericAlias class
1 parent 76bb212 commit 8e0dac3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/_collections_abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ class _CallableGenericAlias(GenericAlias):
473473
def __new__(cls, origin, args):
474474
if not (isinstance(args, tuple) and len(args) == 2):
475475
raise TypeError(
476-
"Callable must be used as Callable[[paramtype1, ...], returntype].")
476+
"Callable must be used as Callable[[paramtype1, paramtype2, ...], returntype].")
477477
t_params, t_return = args
478478
if isinstance(t_params, (tuple, list)):
479479
args = (*t_params, t_return)

0 commit comments

Comments
 (0)