diff options
author | kj <28750310+Fidget-Spinner@users.noreply.github.com> | 2020-11-25 11:59:59 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 13:59:59 +0900 |
commit | 8d17d2bd0a7358644d77b9ab675fa5b961248848 (patch) | |
tree | 830ccbee3f3d53a0df72ce07951af91a569bc7a0 | |
parent | 2d44a6bc4fea742e3215101a2c4c3fb18b70a4c6 (diff) | |
download | cpython-git-8d17d2bd0a7358644d77b9ab675fa5b961248848.tar.gz |
Doc: Minor fixes (GH-23422)
-rw-r--r-- | Doc/library/stdtypes.rst | 2 | ||||
-rw-r--r-- | Doc/whatsnew/3.10.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 84d5a3a59f..59c2b84b52 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -5065,7 +5065,7 @@ instantiated from the type:: >>> class M(type): ... def __or__(self, other): - ... return "Hello" + ... return "Hello" ... >>> class C(metaclass=M): ... pass diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index f3e433abf0..c5efaaa504 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -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 |