diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index bb126b790270d6..ce261abc2a347d 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -1802,7 +1802,7 @@ aliases. .. doctest:: - >>> print(ast.dump(ast.parse("type Alias[**P = (int, str)] = Callable[P, int]"), indent=4)) + >>> print(ast.dump(ast.parse("type Alias[**P = [int, str]] = Callable[P, int]"), indent=4)) Module( body=[ TypeAlias( @@ -1810,7 +1810,7 @@ aliases. type_params=[ ParamSpec( name='P', - default_value=Tuple( + default_value=List( elts=[ Name(id='int', ctx=Load()), Name(id='str', ctx=Load())],