[pylint] Detect nested methods correctly (PLW1641)#15032
[pylint] Detect nested methods correctly (PLW1641)#15032MichaReiser merged 9 commits intoastral-sh:mainfrom
pylint] Detect nested methods correctly (PLW1641)#15032Conversation
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| PLW1641 | 3 | 3 | 0 | 0 | 0 |
|
I'm a bit concerned about special casing this behavior only for I wonder if we could make this more reusable so that all class method rules could profit from it. Although I'm not quiet sure how to do that. For example, we could create a |
MichaReiser
left a comment
There was a problem hiding this comment.
I refactored your code and introduced a reusable any_member_declaration as discussed in the PR before. The reason why I prefer having this helper is that it now can be used for other rules as well. For example, too many public methods could make use of it, resulting in more consistent behavior across our rules.
|
Thank you |
Summary
Resolves #14882.
Test Plan
cargo nextest runandcargo insta test.