PEP 604: Fix markup (#1539)

"Change only PEP 484" is not sub idea of "Add a new operator ".
This commit is contained in:
Inada Naoki 2020-07-29 14:27:57 +09:00 committed by GitHub
parent fede4ec838
commit 15a162b082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -136,8 +136,8 @@ CONS:
Pytype, and who knows what else (it's a minor change see "Reference Implementation"
Change only PEP 484 (Type hints) to accept the syntax ``type1 | type2`` ?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2. Change only PEP 484 (Type hints) to accept the syntax ``type1 | type2`` ?
----------------------------------------------------------------------------
PEP 563 (Postponed Evaluation of Annotations) is enough to accept this proposition,
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 (``
File "<string>", line 1, in <module>
TypeError: unsupported operand type(s) for |: 'type' and 'type'
2. Extend ``isinstance()`` and ``issubclass()`` to accept ``Union`` ?
3. Extend ``isinstance()`` and ``issubclass()`` to accept ``Union`` ?
---------------------------------------------------------------------
::