mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
![]() ## Summary Resolves #15968. Previously, these would be considered violations: ```python b''.strip('//') ''.lstrip('//', foo = "bar") ``` ...while these are not: ```python b''.strip(b'//') ''.strip('\\b\\x08') ``` Ruff will now not report when the types of the object and that of the argument mismatch, or when there are extra arguments. ## Test Plan `cargo nextest run` and `cargo insta test`. |
||
---|---|---|
.. | ||
resources | ||
src | ||
Cargo.toml |