diff options
author | Rahul Jha <rj722@protonmail.com> | 2018-09-10 18:21:04 (GMT) |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2018-09-10 18:21:04 (GMT) |
commit | 9430652535f88125d8003f342a8884d34885d876 (patch) | |
tree | d0b6fff5561ab141a9209c9f78c242979b94e222 /Doc/library/enum.rst | |
parent | 51a4743d19abd016f0772a57fb31df7af9220e18 (diff) | |
download | cpython-9430652535f88125d8003f342a8884d34885d876.zip cpython-9430652535f88125d8003f342a8884d34885d876.tar.gz cpython-9430652535f88125d8003f342a8884d34885d876.tar.bz2 |
bpo-33217: Raise TypeError for non-Enum lookups in Enums (GH-6651)
* bpo-33217: Raise TypeError for non-Enum lookups in Enums
Diffstat (limited to 'Doc/library/enum.rst')
-rw-r--r-- | Doc/library/enum.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index dd794b4..3f17f99 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -976,7 +976,7 @@ Enum Classes The :class:`EnumMeta` metaclass is responsible for providing the :meth:`__contains__`, :meth:`__dir__`, :meth:`__iter__` and other methods that allow one to do things with an :class:`Enum` class that fail on a typical -class, such as `list(Color)` or `some_var in Color`. :class:`EnumMeta` is +class, such as `list(Color)` or `some_enum_var in Color`. :class:`EnumMeta` is responsible for ensuring that various other methods on the final :class:`Enum` class are correct (such as :meth:`__new__`, :meth:`__getnewargs__`, :meth:`__str__` and :meth:`__repr__`). |