ruff/crates/ruff_linter
Thomas M Kehrenberg 7be706641d
[pylint] Exclude self and cls when counting method arguments (#9563)
## Summary

This PR detects whether PLR0917 is being applied to a method or class
method, and if so, it ignores the first argument for the purposes of
counting the number of positional arguments.

## Test Plan

New tests have been added to the corresponding fixture.

Closes #9552.
2024-01-18 03:17:45 +00:00
..
resources [pylint] Exclude self and cls when counting method arguments (#9563) 2024-01-18 03:17:45 +00:00
src [pylint] Exclude self and cls when counting method arguments (#9563) 2024-01-18 03:17:45 +00:00
__init__.py [pylint] (Re-)Implement import-private-name (C2701) (#9553) 2024-01-16 14:03:11 -05:00
Cargo.toml Bump version to v0.1.13 (#9493) 2024-01-12 09:27:39 -05:00