Skip to content

Detect useless f-strings #9530

Open
Open

Description

Current problem

Real diff:

-                cursor.executescript(f'BEGIN;\n{diff}\nCOMMIT;')
+                cursor.executescript(f'{diff}')

This is an example where Pylint could identify codestyle problem. Useless f-string. i.e. f-strings containing single variable without formatting attributes and without other f-string parts.

Desired solution

Detect such cases and notify

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions