-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix a false negative for duplicate-argument-name
#9670
Fix a false negative for duplicate-argument-name
#9670
Conversation
β¦ositional-only``, ``*args`` and ``**kwargs`` arguments in the check. Closes pylint-dev#9669
@@ -145,7 +145,7 @@ class BasicErrorChecker(_BasicChecker): | |||
"pre-decrement operator -- and ++, which doesn't exist in Python.", | |||
), | |||
"E0108": ( | |||
"Duplicate argument name %s in function definition", | |||
"Duplicate argument name %r in function definition", |
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.
This is an incidental change to add quotes to the name of the missing argument in the message output.
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #9670 +/- ##
==========================================
- Coverage 95.84% 95.84% -0.01%
==========================================
Files 174 174
Lines 18904 18901 -3
==========================================
- Hits 18118 18115 -3
Misses 786 786
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
LGTM, some nits.
Co-authored-by: Pierre Sassoulas <[email protected]>
for more information, see https://pre-commit.ci
Let's wait for another review, 3.3.0 is not out yet :) |
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit aab51bb |
Type of Changes
Description
Fix a false negative for
duplicate-argument-name
by includingpositional-only
,*args
and**kwargs
arguments in the check.Closes #9669