From: nu_no Date: Sun, 27 Jan 2019 22:07:47 +0000 (+0100) Subject: Fix typo: class declaration (GH-11678) X-Git-Tag: v3.8.0a1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfc8bb987d1fcba9225a19542c0fb9132b846b5b;p=thirdparty%2FPython%2Fcpython.git Fix typo: class declaration (GH-11678) --- diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 702eacd0e98a..19277d76995f 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