summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2023-08-23 12:09:28 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-09-13 08:22:45 +0200
commit170b0a47b09d735132bcfdcc9b303397eb03b34b (patch)
treef9b567eb564c40d4fbc89455538a93f775d77b21 /docs
parente15174983adf0ee5caa1b678c94bb1c6fbd40402 (diff)
Refs #34233 -- Used @staticmethod with TextChoices._generate_next_value_().
Now that Python 3.10 is the minimum supported version, we can decorate _generate_next_value_() with @staticmethod. It wasn't possible before as Python < 3.10 does not support calling static methods direct from the class body. https://docs.python.org/3/library/enum.html#enum.Enum._generate_next_value_
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions