Skip to content

Conversation

@ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Sep 16, 2020

EnumMeta double-checks that __repr__, __str__, __format__, and __reduce_ex__ are not the same as object's, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed. This patch fixes that.

https://bugs.python.org/issue41789

EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed.  This patch fixes that.

Automerge-Triggered-By: @ethanfurman
(cherry picked from commit 22415ad)

Co-authored-by: Ethan Furman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants