Skip to content
Snippets Groups Projects
Unverified Commit 304ec53b authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

bpo-44356: [Enum] allow multiple data-type mixins if they are all the same (GH-26649) (GH-26652)


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):
        GH- some behavior here

    class Str2Enum(str, Enum):
        GH- some more behavior here

    class FinalStrEnum(Str1Enum, Str2Enum):
        GH- this now works
(cherry picked from commit 8a4f0850)

Co-authored-by: default avatarEthan Furman <ethan@stoneleaf.us>

Co-authored-by: default avatarEthan Furman <ethan@stoneleaf.us>
parent 175ebc60
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment