Doc: Minor fixes (GH-23422)

This commit is contained in:
kj 2020-11-25 11:59:59 +07:00 committed by GitHub
parent 2d44a6bc4f
commit 8d17d2bd0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5065,7 +5065,7 @@ instantiated from the type::
>>> class M(type):
... def __or__(self, other):
... return "Hello"
... return "Hello"
...
>>> class C(metaclass=M):
... pass

View File

@ -120,8 +120,8 @@ See :pep:`613` for more details.
(Contributed by Mikhail Golubev in :issue:`41923`.)
PEP604: New Type Union Operator
-------------------------------
PEP 604: New Type Union Operator
--------------------------------
A new type union operator was introduced which enables the syntax ``X | Y``.
This provides a cleaner way of expressing 'either type X or type Y' instead of