-
Notifications
You must be signed in to change notification settings - Fork 139
Add from_str methods to enums #1095
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
base: main
Are you sure you want to change the base?
Conversation
This pull request was exported from Phabricator. Differential Revision: D79773872 |
Summary: Adds from_str methods to help parse enums from string literals Reviewed By: hokyungh-m Differential Revision: D79773872
353daa4
to
7a40353
Compare
This pull request was exported from Phabricator. Differential Revision: D79773872 |
The python3.9 tests seem flaky for some reason. Checks passed after 2 retries |
Summary: Adds from_str methods to help parse enums from string literals Reviewed By: hokyungh-m Differential Revision: D79773872
7a40353
to
d73d4d3
Compare
Summary: Pull Request resolved: #1095 Adds from_str methods to help parse enums from string literals Reviewed By: hokyungh-m Differential Revision: D79773872
This pull request was exported from Phabricator. Differential Revision: D79773872 |
d73d4d3
to
fb0d366
Compare
Summary: Adds from_str methods to help parse enums from string literals Reviewed By: hokyungh-m Differential Revision: D79773872
Summary: Adds from_str methods to help parse enums from string literals Reviewed By: hokyungh-m Differential Revision: D79773872
Why do you need the from_str method? Isn't there a direct way to do this by using the enum ie ENUM[string_value] |
Summary: Adds from_str methods to help parse enums from string literals Reviewed By: hokyungh-m Differential Revision: D79773872
Summary: Adds from_str methods to help parse enums from string literals
Differential Revision: D79773872