We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 606fef4 commit 8fd71d2Copy full SHA for 8fd71d2
docs/spec/literal.rst
@@ -168,8 +168,8 @@ The following parameters are intentionally disallowed by design:
168
``Literal[4j]`` that contain just a single complex number are also
169
prohibited.
170
171
- - The only exception to this rule is the unary ``-`` (minus) for ints: types
172
- 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*.
173
174
- Tuples containing valid literal types like ``Literal[(1, "foo", "bar")]``.
175
The user could always express this type as
0 commit comments