Skip to content

fix: make functions in LetterCase members of the enum#545

Open
benberryallwood wants to merge 1 commit into
lidatong:masterfrom
benberryallwood:fix-lettercase-member-type
Open

fix: make functions in LetterCase members of the enum#545
benberryallwood wants to merge 1 commit into
lidatong:masterfrom
benberryallwood:fix-lettercase-member-type

Conversation

@benberryallwood

Copy link
Copy Markdown

Addresses #544

  • Wrap functions with functools.partial so they're not registered as methods when assigning them to attributes in the LetterCase enum
  • Implement LetterCase.__call__ to maintain the current behaviour of being able to call members of the enum without having to use .value

@benberryallwood benberryallwood force-pushed the fix-lettercase-member-type branch from 219c4dc to 6b75a8c Compare September 6, 2024 15:57
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.

1 participant