Skip to content

Commit 89f4b23

Browse files
[3.13] Clarify ast docs to use a less confusing example for ast.ParamSpec (GH-127955) (#127959)
Clarify ast docs to use a less confusing example for `ast.ParamSpec` (GH-127955) Fix typo in ast docs: ParamSpec defaults (cherry picked from commit 7900a85) Co-authored-by: Steve C <[email protected]>
1 parent 90ae4b6 commit 89f4b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/ast.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,15 +1802,15 @@ aliases.
18021802

18031803
.. doctest::
18041804

1805-
>>> print(ast.dump(ast.parse("type Alias[**P = (int, str)] = Callable[P, int]"), indent=4))
1805+
>>> print(ast.dump(ast.parse("type Alias[**P = [int, str]] = Callable[P, int]"), indent=4))
18061806
Module(
18071807
body=[
18081808
TypeAlias(
18091809
name=Name(id='Alias', ctx=Store()),
18101810
type_params=[
18111811
ParamSpec(
18121812
name='P',
1813-
default_value=Tuple(
1813+
default_value=List(
18141814
elts=[
18151815
Name(id='int', ctx=Load()),
18161816
Name(id='str', ctx=Load())],

0 commit comments

Comments
 (0)