ruff/crates/ruff_linter
InSync 19f3424a1a
[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`.
2025-02-07 14:31:07 -06:00
..
resources [pylint] Do not report calls when object type and argument type mismatch, remove custom escape handling logic (PLE1310) (#15984) 2025-02-07 14:31:07 -06:00
src [pylint] Do not report calls when object type and argument type mismatch, remove custom escape handling logic (PLE1310) (#15984) 2025-02-07 14:31:07 -06:00
Cargo.toml Bump version to 0.9.5 (#16002) 2025-02-06 13:24:45 -06:00