From dfc8bb987d1fcba9225a19542c0fb9132b846b5b Mon Sep 17 00:00:00 2001 From: nu_no Date: Sun, 27 Jan 2019 23:07:47 +0100 Subject: Fix typo: class declaration (GH-11678) --- Doc/library/enum.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12