Fix typo: class declaration (GH-11678)

https://github.com/python/cpython/commit/dfc8bb987d1fcba9225a19542c0fb9132b8... commit: dfc8bb987d1fcba9225a19542c0fb9132b846b5b branch: master author: nu_no <nuno.an@gmail.com> committer: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> date: 2019-01-27T14:07:47-08:00 summary: Fix typo: class declaration (GH-11678) files: M Doc/library/enum.rst 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
participants (1)
-
Miss Islington (bot)