mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Doc: Minor fixes (GH-23422)
This commit is contained in:
parent
2d44a6bc4f
commit
8d17d2bd0a
2 changed files with 3 additions and 3 deletions
|
@ -5065,7 +5065,7 @@ instantiated from the type::
|
|||
|
||||
>>> class M(type):
|
||||
... def __or__(self, other):
|
||||
... return "Hello"
|
||||
... return "Hello"
|
||||
...
|
||||
>>> class C(metaclass=M):
|
||||
... pass
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue