-
Notifications
You must be signed in to change notification settings - Fork 1
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
Python 3.11 breaks f-String cast #9
Comments
Hey @fellnerse thanks for reporting this! Yes, I can assign it to you if you want. 😃 |
From What’s New In Python 3.11
|
We can rebase the fix on top of #10 to verify that it works as expected. |
From What’s New In Python 3.11: > Changed Enum.format() (the default for format(), str.format() and f-strings) to always produce the same result as Enum.str(): for enums inheriting from ReprEnum it will be the member’s value; __for all other enums it will be the enum and member name (e.g. Color.RED).__ For this reason we specifically use the enum's value where necessary. Fixes #9
From What’s New In Python 3.11: > Changed Enum.format() (the default for format(), str.format() and f-strings) to always produce the same result as Enum.str(): for enums inheriting from ReprEnum it will be the member’s value; __for all other enums it will be the enum and member name (e.g. Color.RED).__ For this reason we specifically use the enum's value where necessary. Fixes #9
When running the auto setup with python 3.11 I get this in the shell:
with python 3.10:
I guess the problem is that in 3.11 the automated f string cast changed
and all these lines in the core.py are affected:
auto-click-auto/auto_click_auto/core.py
Line 88 in 31f5266
Can I help here?
The text was updated successfully, but these errors were encountered: