diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2021-06-10 20:30:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 20:30:41 (GMT) |
commit | 8a4f0850d75747af8c96ca0e7eef1f5c1abfba25 (patch) | |
tree | fde4b0f4a03765b96b3af92818fad1fe00d12b39 /Lib/distutils | |
parent | 42d5a4fc3b35e45cdd237d56a04e98894d0a31f5 (diff) | |
download | cpython-8a4f0850d75747af8c96ca0e7eef1f5c1abfba25.zip cpython-8a4f0850d75747af8c96ca0e7eef1f5c1abfba25.tar.gz cpython-8a4f0850d75747af8c96ca0e7eef1f5c1abfba25.tar.bz2 |
bpo-44356: [Enum] allow multiple data-type mixins if they are all the same (GH-26649)
This enables, for example, two base Enums to both inherit from `str`, and then both be mixed into the same final Enum:
class Str1Enum(str, Enum):
# some behavior here
class Str2Enum(str, Enum):
# some more behavior here
class FinalStrEnum(Str1Enum, Str2Enum):
# this now works
Diffstat (limited to 'Lib/distutils')
0 files changed, 0 insertions, 0 deletions