[Python-checkins] Fix typo: class declaration (GH-11678)
Miss Islington (bot)
webhook-mailer at python.org
Sun Jan 27 17:25:53 EST 2019
https://github.com/python/cpython/commit/ff27f8145d7194fb3891b610443dee15be8f8f63
commit: ff27f8145d7194fb3891b610443dee15be8f8f63
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-01-27T14:25:49-08:00
summary:
Fix typo: class declaration (GH-11678)
(cherry picked from commit dfc8bb987d1fcba9225a19542c0fb9132b846b5b)
Co-authored-by: nu_no <nuno.an at gmail.com>
files:
M Doc/library/enum.rst
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index 81e9766e429b..a6285ffaf191 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -394,7 +394,7 @@ A new :class:`Enum` class must have one base Enum class, up to one concrete
data type, and as many :class:`object`-based mixin classes as needed. The
order of these base classes is::
- def EnumName([mix-in, ...,] [data-type,] base-enum):
+ class EnumName([mix-in, ...,] [data-type,] base-enum):
pass
Also, subclassing an enumeration is allowed only if the enumeration does not define
More information about the Python-checkins
mailing list