diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2023-04-04 00:47:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 00:47:40 (GMT) |
commit | 810d365b5eb2cf3043957ca2971f6e7a7cd87d0d (patch) | |
tree | c68dc1bf075c13aedf4a19d8714c17d58b9ddc08 /Doc/howto | |
parent | c71756fa651e51041ac8b55776320e3297ba081d (diff) | |
download | cpython-810d365b5eb2cf3043957ca2971f6e7a7cd87d0d.zip cpython-810d365b5eb2cf3043957ca2971f6e7a7cd87d0d.tar.gz cpython-810d365b5eb2cf3043957ca2971f6e7a7cd87d0d.tar.bz2 |
gh-103056: [Enum] use staticmethod decorator for _gnv_ (GH-103231)
_gnv_ --> _generate_next_value_
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/enum.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst index fc8ea55..38951ed 100644 --- a/Doc/howto/enum.rst +++ b/Doc/howto/enum.rst @@ -284,6 +284,7 @@ The values are chosen by :func:`_generate_next_value_`, which can be overridden:: >>> class AutoName(Enum): + ... @staticmethod ... def _generate_next_value_(name, start, count, last_values): ... return name ... |