Skip to content

Error context for string interpolation may be wrong #7528

Open
@ilevkivskyi

Description

@ilevkivskyi

If there are multiple replacements like '%s, %s' % (one, other), many errors (e.g. wrong replacement type) are reported with the tuple expression as the location. It would be better to set specific item as the error context as the current way can be quite misleading if one uses, --show-column-numbers, or --pretty, or one has a multi-line interpolation.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions