Skip to content

Commit 15a162b

Browse files
authored
PEP 604: Fix markup (#1539)
"Change only PEP 484" is not sub idea of "Add a new operator ".
1 parent fede4ec commit 15a162b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pep-0604.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ CONS:
136136
Pytype, and who knows what else (it's a minor change see "Reference Implementation"
137137

138138

139-
Change only PEP 484 (Type hints) to accept the syntax ``type1 | type2`` ?
140-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
139+
2. Change only PEP 484 (Type hints) to accept the syntax ``type1 | type2`` ?
140+
----------------------------------------------------------------------------
141141

142142
PEP 563 (Postponed Evaluation of Annotations) is enough to accept this proposition,
143143
if we accept to not be compatible with the dynamic evaluation of annotations (``eval()``).
@@ -153,7 +153,7 @@ if we accept to not be compatible with the dynamic evaluation of annotations (``
153153
File "<string>", line 1, in <module>
154154
TypeError: unsupported operand type(s) for |: 'type' and 'type'
155155

156-
2. Extend ``isinstance()`` and ``issubclass()`` to accept ``Union`` ?
156+
3. Extend ``isinstance()`` and ``issubclass()`` to accept ``Union`` ?
157157
---------------------------------------------------------------------
158158

159159
::

0 commit comments

Comments
 (0)