Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide __int__ instance method on enum types to support int(Enum.Member) #1661

Merged
merged 1 commit into from Jan 6, 2022

Conversation

lostmsu
Copy link
Member

@lostmsu lostmsu commented Jan 6, 2022

Added EnumOps.__int__, that provides __int__ method for type dictionaries of reflected enum types.

Does this close any currently open issues?

implements #1585

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Updated the CHANGELOG

@lostmsu lostmsu linked an issue Jan 6, 2022 that may be closed by this pull request
@filmor filmor merged commit efad01c into pythonnet:master Jan 6, 2022
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.

Get Value Of An Enum
2 participants