File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5065,7 +5065,7 @@ instantiated from the type::
5065
5065
5066
5066
>>> class M(type):
5067
5067
... def __or__(self, other):
5068
- ... return "Hello"
5068
+ ... return "Hello"
5069
5069
...
5070
5070
>>> class C(metaclass=M):
5071
5071
... pass
Original file line number Diff line number Diff line change @@ -120,8 +120,8 @@ See :pep:`613` for more details.
120
120
121
121
(Contributed by Mikhail Golubev in :issue: `41923 `.)
122
122
123
- PEP604 : New Type Union Operator
124
- -------------------------------
123
+ PEP 604 : New Type Union Operator
124
+ --------------------------------
125
125
126
126
A new type union operator was introduced which enables the syntax ``X | Y ``.
127
127
This provides a cleaner way of expressing 'either type X or type Y' instead of
You can’t perform that action at this time.
0 commit comments