We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a line of code in my project that looks like:
logging.info(f"{OMEGA.message_cache=}, {len(OMEGA.user_cache)=}, " f"{OMEGA.message_cache / max(len(OMEGA.user_cache), 1)=}")
shed works fine but when using shed --refactor it stalls here:
shed
shed --refactor
Internal error formatting 'main.py': ParserSyntaxError: Syntax Error @ 794:31. Incomplete input. Encountered '=', but expected '!', ':', or '}'. f"{OMEGA.message_cache=}, {len(OMEGA.user_cache)=}, " ^ Please report this to https://github.com/Zac-HD/shed/issues
The text was updated successfully, but these errors were encountered:
Hmm, looks like failed version detection. Does passing --py38-plus fix it, as a quick workaround?
Sorry, something went wrong.
yep, works fine with shed --refactor --py38-plus
shed --refactor --py38-plus
f"{x=}"
Yep, the underlying problem is that Black doesn't detect f-strings with = as requiring Python 3.8.
=
I've just released shed 0.9.2 with a workaround, 5724e7f. Thanks for the report, and happy formatting!
shed 0.9.2
No branches or pull requests
I have a line of code in my project that looks like:
shed
works fine but when usingshed --refactor
it stalls here:The text was updated successfully, but these errors were encountered: