Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@athewsey
Copy link
Contributor

Issue #, if available: #186

Description of changes:

  • Update all string enums to inherit from (str, Enum) so that comparisons work as expected
  • Add unit tests to cover equality comparisons

Testing done:

Ran ./devtool all and all tests completed successfully


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@athewsey
Copy link
Contributor Author

Rebased to current main. As I understood from the original review there wasn't actually a need for any change, but let me know if this is not the case!

Appreciate if y'all can help get this merged so we can have a more intuitive API 🙏

@keerthanvasist
Copy link
Contributor

Thanks for your submission @athewsey!

String enums should inherit from both (str, Enum) so that comparisons
work as expected. Fixes aws#186
@malhotra18 malhotra18 merged commit 698f958 into aws:main Jun 20, 2024
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