Skip to content
Merged
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
4 changes: 2 additions & 2 deletions docs/spec/literal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ The following parameters are intentionally disallowed by design:
``Literal[4j]`` that contain just a single complex number are also
prohibited.

- The only exception to this rule is the unary ``-`` (minus) for ints: types
like ``Literal[-5]`` are *accepted*.
- The only exceptions to this rule are the unary ``-`` (minus) and unary ``+`` (plus) for ints: types
like ``Literal[-5]`` and ``Literal[+1]`` are *accepted*.

- Tuples containing valid literal types like ``Literal[(1, "foo", "bar")]``.
The user could always express this type as
Expand Down