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

Detect when f-strings don't use any interpolation variables #3190

Closed
PCManticore opened this issue Oct 15, 2019 · 0 comments
Closed

Detect when f-strings don't use any interpolation variables #3190

PCManticore opened this issue Oct 15, 2019 · 0 comments
Labels
Good first issue Friendly and approachable by new contributors

Comments

@PCManticore
Copy link
Contributor

Is your feature request related to a problem? Please describe

There is no error if a string is marked as an f-string but does not use any interpolation. e.g. f"some message" is superfluously marked as an f-string since it does not have any interpolated variables.

Describe the solution you'd like

We should emit a warning when we encounter f-strings without interpolation variables.

Additional context

Slightly related to #2507.

@PCManticore PCManticore added the Good first issue Friendly and approachable by new contributors label Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good first issue Friendly and approachable by new contributors
Projects
None yet
Development

No branches or pull requests

1 participant