Tiny zero-dependency linter: flags str.replace(P,'') guarded by startswith/endswith(P) that should be removeprefix/removesuffix (the bug ruff B005 misses).
-
Updated
Jun 11, 2026 - Python
Tiny zero-dependency linter: flags str.replace(P,'') guarded by startswith/endswith(P) that should be removeprefix/removesuffix (the bug ruff B005 misses).
Add a description, image, and links to the removeprefix topic page so that developers can more easily learn about it.
To associate your repository with the removeprefix topic, visit your repo's landing page and select "manage topics."