Skip to content

Commit

Permalink
PEP 677: Use PEP 646 syntax when discussing unpack (#2216)
Browse files Browse the repository at this point in the history
I'd intended to fix this based on feedback in an earlier PR, but missed it.
  • Loading branch information
stroxler authored Jan 8, 2022
1 parent 400d46e commit 557696d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pep-0677.rst
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ evaluate the AST form::
Name("bool")
)

and be treated by type checkers as equivalent to
``Callable[[int, Unpack[Ts]], bool]``.
and be treated by type checkers as equivalent to or ``Callable[[int,
*Ts], bool]`` or ``Callable[[int, Unpack[Ts]], bool]``.


Implications of the Grammar
Expand Down

0 comments on commit 557696d

Please sign in to comment.