diff options
author | nu_no <nuno.an@gmail.com> | 2019-01-27 22:07:47 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-01-27 22:07:47 (GMT) |
commit | dfc8bb987d1fcba9225a19542c0fb9132b846b5b (patch) | |
tree | 977022cfa7426bee8557e8a3b7ae852ca886fa97 /Doc | |
parent | 3171df34141c1f26ec16dccb4357184c0cf6c58f (diff) | |
download | cpython-dfc8bb987d1fcba9225a19542c0fb9132b846b5b.zip cpython-dfc8bb987d1fcba9225a19542c0fb9132b846b5b.tar.gz cpython-dfc8bb987d1fcba9225a19542c0fb9132b846b5b.tar.bz2 |
Fix typo: class declaration (GH-11678)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/enum.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 702eacd..19277d7 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 |