-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pep8-naming
] Ignore @override
methods (N803
)
#15954
Conversation
See also #15296, which proposes that |
|
Would you mind taking a look at the ecosystem check. They all seem wrong because there are no I'd also be fine to ship this without preview because I consider it a bug fix. But I'm also okay to keep it behind preview. |
@MichaReiser This is due to the rule no longer checking lambdas. Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thank you
…nvalid-argument-name`) (#16667) ## Summary This PR stabilizes the preview behavior for `invalid-argument-name` (`N803`) to ignore argument names of functions decorated with `typing.override` because these methods are *out of the authors* control. This behavior was introduced in #15954 and released as part of Ruff 0.9.5 (6th of February). There have been no new issues or PRs since this behavior change (preview) was introduced.
…nvalid-argument-name`) (#16667) ## Summary This PR stabilizes the preview behavior for `invalid-argument-name` (`N803`) to ignore argument names of functions decorated with `typing.override` because these methods are *out of the authors* control. This behavior was introduced in #15954 and released as part of Ruff 0.9.5 (6th of February). There have been no new issues or PRs since this behavior change (preview) was introduced.
…nvalid-argument-name`) (#16667) ## Summary This PR stabilizes the preview behavior for `invalid-argument-name` (`N803`) to ignore argument names of functions decorated with `typing.override` because these methods are *out of the authors* control. This behavior was introduced in #15954 and released as part of Ruff 0.9.5 (6th of February). There have been no new issues or PRs since this behavior change (preview) was introduced.
Summary
Resolves #15925.
N803
now checks for functions instead of parameters. In preview mode, if a method is decorated with@override
and the current scope is that of a class, it will be ignored.Test Plan
cargo nextest run
andcargo insta test
.