ruff
19f3424a - [`pylint`] Do not report calls when object type and argument type mismatch, remove custom escape handling logic (`PLE1310`) (#15984)

Commit
308 days ago
[`pylint`] Do not report calls when object type and argument type mismatch, remove custom escape handling logic (`PLE1310`) (#15984) ## 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`.
Author
Parents
Loading