summaryrefslogtreecommitdiffstats
path: root/Lib/code.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2021-06-10 20:30:41 (GMT)
committerGitHub <noreply@github.com>2021-06-10 20:30:41 (GMT)
commit8a4f0850d75747af8c96ca0e7eef1f5c1abfba25 (patch)
treefde4b0f4a03765b96b3af92818fad1fe00d12b39 /Lib/code.py
parent42d5a4fc3b35e45cdd237d56a04e98894d0a31f5 (diff)
downloadcpython-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/code.py')
0 files changed, 0 insertions, 0 deletions