]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo: class declaration (GH-11678)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 27 Jan 2019 22:25:49 +0000 (14:25 -0800)
committerGitHub <noreply@github.com>
Sun, 27 Jan 2019 22:25:49 +0000 (14:25 -0800)
(cherry picked from commit dfc8bb987d1fcba9225a19542c0fb9132b846b5b)

Co-authored-by: nu_no <nuno.an@gmail.com>
Doc/library/enum.rst

index 81e9766e429b81ac0b1f2c657f2374da3a1a5250..a6285ffaf1911492ad883d27a834502b01509663 100644 (file)
@@ -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