mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-04 01:36:46 +00:00
This PR introduces a new `crates` directory and moves all "product" crates into that folder. Part of #2059.
26 lines
745 B
Python
26 lines
745 B
Python
s = "qwe"
|
|
s.strip(s) # no warning
|
|
s.strip("we") # no warning
|
|
s.strip(".facebook.com") # warning
|
|
s.strip("e") # no warning
|
|
s.strip("\n\t ") # no warning
|
|
s.strip(r"\n\t ") # warning
|
|
s.lstrip(s) # no warning
|
|
s.lstrip("we") # no warning
|
|
s.lstrip(".facebook.com") # warning
|
|
s.lstrip("e") # no warning
|
|
s.lstrip("\n\t ") # no warning
|
|
s.lstrip(r"\n\t ") # warning
|
|
s.rstrip(s) # no warning
|
|
s.rstrip("we") # warning
|
|
s.rstrip(".facebook.com") # warning
|
|
s.rstrip("e") # no warning
|
|
s.rstrip("\n\t ") # no warning
|
|
s.rstrip(r"\n\t ") # warning
|
|
|
|
from somewhere import other_type, strip
|
|
|
|
strip("we") # no warning
|
|
other_type().lstrip() # no warning
|
|
other_type().rstrip(["a", "b", "c"]) # no warning
|
|
other_type().strip("a", "b") # no warning
|