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

fix: update all enum classes to support python 3.11+ users #168

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

ajndkr
Copy link
Owner

@ajndkr ajndkr commented Dec 11, 2023

Description

The (str, Enum) enum classes don't work as expected for python 3.11 due to the presence of StrEnum class from enum library.

Changelog:

  • ⚡ added StrEnum definition in utils
  • ⚡ updated all enum classes

StrEnum is available for 3.11+ only. fallback to (str, Enum) for other python versions
@ajndkr ajndkr added the fix Pull requests for bug fixes label Dec 11, 2023
@ajndkr ajndkr changed the title fix: update all Enum classes to support python 3.11+ users fix: update all enum classes to support python 3.11+ users Dec 11, 2023
@ajndkr ajndkr self-assigned this Dec 11, 2023
@ajndkr ajndkr merged commit 6a5608a into main Dec 11, 2023
2 checks passed
@ajndkr ajndkr deleted the fix/enum-py311 branch December 11, 2023 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull requests for bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant