diff options
author | Steve C <diceroll123@gmail.com> | 2024-12-15 12:28:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-15 12:28:43 (GMT) |
commit | 7900a85019457c14e8c6abac532846bc9f26760d (patch) | |
tree | a5a65c4f52c1bc0c3887f947ed7c6f92f64e9dd8 | |
parent | 0ac40acec045c4ce780cf7d887fcbe4c661e82b7 (diff) | |
download | cpython-7900a85019457c14e8c6abac532846bc9f26760d.zip cpython-7900a85019457c14e8c6abac532846bc9f26760d.tar.gz cpython-7900a85019457c14e8c6abac532846bc9f26760d.tar.bz2 |
Clarify ast docs to use a less confusing example for `ast.ParamSpec` (#127955)
Fix typo in ast docs: ParamSpec defaults
-rw-r--r-- | Doc/library/ast.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 22d8c87..fd901e2 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -1807,7 +1807,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( @@ -1815,7 +1815,7 @@ aliases. type_params=[ ParamSpec( name='P', - default_value=Tuple( + default_value=List( elts=[ Name(id='int', ctx=Load()), Name(id='str', ctx=Load())], |