gh-103596: [Enum] do not shadow mixed-in methods/attributes by ethanfurman · Pull Request #103600 · python/cpython
For example:
class Book(StrEnum):
title = auto()
author = auto()
desc = auto()
Book.author.desc is Book.desc
but
Book.author.title() == 'Author'
Using upper-case member names means this isn't an issue in practice.
added
type-bug
labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters