diff options
author | Ethan Onstott <storm@stormprograms.com> | 2020-04-28 17:20:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 17:20:55 (GMT) |
commit | d9a43e20facdf4ad10186f820601c6580e1baa80 (patch) | |
tree | ff8c2a396025dfa3c37d97b3fe4d3ff516bf9cf4 /Doc/library/enum.rst | |
parent | a42ca74fa30227e2f89a619332557cf093a937d5 (diff) | |
download | cpython-d9a43e20facdf4ad10186f820601c6580e1baa80.zip cpython-d9a43e20facdf4ad10186f820601c6580e1baa80.tar.gz cpython-d9a43e20facdf4ad10186f820601c6580e1baa80.tar.bz2 |
bpo-40025: Require _generate_next_value_ to be defined before members (GH-19098)
require `_generate_next_value_` to be defined before members
Diffstat (limited to 'Doc/library/enum.rst')
-rw-r--r-- | Doc/library/enum.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index eaf29cf..4b4f5eb 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -273,6 +273,10 @@ overridden:: the next :class:`int` in sequence with the last :class:`int` provided, but the way it does this is an implementation detail and may change. +.. note:: + + The :meth:`_generate_next_value_` method must be defined before any members. + Iteration --------- |