Skip to content

Commit

Permalink
Fix typo in ast docs: ParamSpec defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
diceroll123 authored Dec 15, 2024
1 parent 0ac40ac commit e6e7e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/ast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1807,15 +1807,15 @@ 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(
name=Name(id='Alias', ctx=Store()),
type_params=[
ParamSpec(
name='P',
default_value=Tuple(
default_value=List(
elts=[
Name(id='int', ctx=Load()),
Name(id='str', ctx=Load())],
Expand Down

0 comments on commit e6e7e32

Please sign in to comment.