bugbear21.4.3

B005 Using .strip() with multi-character strings is misleading the reader

Using .strip() with multi-character strings is misleading the reader. It looks like stripping a substring. Move your character set to a constant if this is deliberate. Use .replace() or regular expressions to remove string fragments.

Extra parameters

These are defined by flake8-bugbear in the code and define the behavior of the violation. That's why we decided to print them here, for your reference.
Parameter Value
methods
  • lstrip
  • rstrip
  • strip
valid_paths