Skip to content

invalid-escape-sequence (W605) quick fix has incorrect description #8155

@DetachHead

Description

@DetachHead

the quick fix says "Add backslash to escape sequence":
image

but it actually turns it into a r string instead:

r"\d"

https://play.ruff.rs/0aa99ac0-9dff-4f90-affb-36f66b885661

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions