]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-103479: [Enum] require __new__ to be considered a data type (GH-103495)
authorEthan Furman <ethan@stoneleaf.us>
Thu, 13 Apr 2023 15:31:03 +0000 (08:31 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Apr 2023 15:31:03 +0000 (08:31 -0700)
commita6f95941a3d686707fb38e0f37758e666f25e180
tree0ea29dae5df68a1d67ec01e648659c79f9ff15e6
parent2194071540313e2bbdc7214d77453b9ce3034a5c
gh-103479: [Enum] require __new__ to be considered a data type (GH-103495)

a mixin must either have a __new__ method, or be a dataclass, to be interpreted as a data-type
Doc/howto/enum.rst
Lib/enum.py
Lib/test/test_enum.py