-
Notifications
You must be signed in to change notification settings - Fork 7
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
Should not trigger on byte strings #22
Comments
ghost
mentioned this issue
Feb 20, 2022
OK I can take a look. Should be relatively easy to change. Can you please check what greedy level you are using? If you are using level 2 then it would report an error anyway. |
I'm using whatever is the default. |
akx
added a commit
to akx/flake8-use-fstring
that referenced
this issue
Jul 27, 2022
akx
added a commit
to akx/flake8-use-fstring
that referenced
this issue
Jul 27, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code triggers an FS001 error:
However, using an f-string with a byte string is a syntax error:
(In this particular case
f"y={a}".encode("utf-8")
would work, but that's longer and doesn't always work correctly if there are byte literals in my string.)The text was updated successfully, but these errors were encountered: