mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 04:48:06 +00:00
Avoid D301 autofix for u prefixed strings (#8495)
This PR avoids creating the fix for `D301` if the string is prefixed with `u` i.e., it's a unicode string. The reason being that `u` and `r` cannot be used together as it's a syntax error. Refer: https://github.com/astral-sh/ruff/issues/8402#issuecomment-1788783287
This commit is contained in:
parent
e57bccd500
commit
b3c2935fa5
3 changed files with 24 additions and 8 deletions
|
|
@ -31,3 +31,7 @@ def make_unique_pod_id(pod_id: str) -> str | None:
|
|||
:param pod_id: requested pod name
|
||||
:return: ``str`` valid Pod name of appropriate length
|
||||
"""
|
||||
|
||||
|
||||
def shouldnt_add_raw_here2():
|
||||
u"Sum\\mary."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue