Skip to content

Commit

Permalink
Doc: Minor fixes (pythonGH-23422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fidget-Spinner authored Nov 25, 2020
1 parent 2d44a6b commit 8d17d2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5065,7 +5065,7 @@ instantiated from the type::

>>> class M(type):
... def __or__(self, other):
... return "Hello"
... return "Hello"
...
>>> class C(metaclass=M):
... pass
Expand Down
4 changes: 2 additions & 2 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d17d2b

Please sign in to comment.