We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03a115e commit 6041098Copy full SHA for 6041098
2 files changed
doc/data/messages/b/bad-str-strip-call/bad.py
@@ -1,2 +1,4 @@
1
-my_string = "Hello World"
2
-my_string.strip("Hello") # [bad-str-strip-call]
+"Hello World".strip("Hello") # [bad-str-strip-call]
+# >>> ' World'
3
+"abcbc def bacabc".strip("abcbc ") # [bad-str-strip-call]
4
+# >>> 'def'
doc/data/messages/b/bad-str-strip-call/good.py
-my_string.strip("Helo")
+"Hello World".strip("Helo")
+"abcbc def bacabc".strip("abc ")
0 commit comments