Derived from the Pylint linter.
What it does#
Checks duplicate characters in
Why is this bad?#
All characters in
str.strip calls are removed from both the leading and
trailing ends of the string. Including duplicate characters in the call
is redundant and often indicative of a mistake.
In Python 3.9 and later, you can use
str.removesuffix to remove an exact prefix or suffix from a string,
respectively, which should be preferred when possible.