From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 27 Jan 2019 22:25:49 +0000 (-0800) Subject: Fix typo: class declaration (GH-11678) X-Git-Tag: v3.7.3rc1~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff27f8145d7194fb3891b610443dee15be8f8f63;p=thirdparty%2FPython%2Fcpython.git Fix typo: class declaration (GH-11678) (cherry picked from commit dfc8bb987d1fcba9225a19542c0fb9132b846b5b) Co-authored-by: nu_no --- 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