]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo: class declaration (GH-11678)
authornu_no <nuno.an@gmail.com>
Sun, 27 Jan 2019 22:07:47 +0000 (23:07 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 27 Jan 2019 22:07:47 +0000 (14:07 -0800)
Doc/library/enum.rst

index 702eacd0e98ac28c8f5bb67d70eda91c2b616d61..19277d76995fedd5a3bcd9fa5cbb7a9cf76bf974 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