-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Will mostly fail on Python 3.11 (string enums no longer literal strings) #169
Comments
I can open a PR if you'd like, let me know which approach works best. |
Not sure if this is related, but I get |
For me it fails on "insert" because the parameter |
Hey @SinaKhalili, Thanks for opening this issue and apologies for the delayed reply - if you still have the bandwidth feel free to open a PR which makes use of Otherwise, we'll get to it when we have a free cycle. Thanks! |
Bug report
Any
filter
(such aseq
,lte
, etc) will fail on Python 3.11To observe this, install python 3.11 and run the existing test suit.
Describe the bug
The pattern for inheriting from
(str, Enum)
in order to get a literal string (used in types) no longer works in python 3.11.Instead it's advised to inherit from the standard library's new StrEnum class.
For older versions a check can be done and use the
StrEnum
package for 3.6+ (not part of standard library).Alternatively, one could use the
.value
of an enum and no longer inherit fromstr
.The text was updated successfully, but these errors were encountered: