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

New rule: find unused placeholders for f-strings #9638

Closed
Sanchoyzer opened this issue Jan 24, 2024 · 2 comments
Closed

New rule: find unused placeholders for f-strings #9638

Sanchoyzer opened this issue Jan 24, 2024 · 2 comments

Comments

@Sanchoyzer
Copy link

ruff==0.1.14

def func(my_var: int) -> int:
    var = my_var * 2
    print('var is {var}')
    return var

It might be useful if Ruff will find such places, I made a typo: 'var is {var}' instead of f'var is {var}'

@trag1c
Copy link
Contributor

trag1c commented Jan 24, 2024

I think this is a duplicate of #8151

@charliermarsh
Copy link
Member

Agreed -- I'd like to add this!

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants