Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pep.rst
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ imported qualified or with some other name)

<variadic-type-arg> =
<type> ,
| * [ <type-for-iter> ] ,
| * [ <type-for> ] ,
| * <tuple-type>


<type-for> = <type> <type-for-iter>+ <type-for-if>*
Expand All @@ -524,6 +525,9 @@ imported qualified or with some other name)
(``<type-bool-for>`` is identical to ``<type-for>`` except that the
result type is a ``<type-bool>`` instead of a ``<type>``.)

(``<tuple-type>`` is any type which when evaluated resolves to a tuple
type eg. ``tuple[int, str]``.)

There are three core syntactic features introduced: type booleans,
conditional types and unpacked comprehension types.

Expand Down