-
-
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 differing param doc false positive #6980
Fix differing param doc false positive #6980
Conversation
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.
Look promising, thank you ! Could you add some functional tests, please ?
Pull Request Test Coverage Report for Build 2547352326
π - Coveralls |
This comment has been minimized.
This comment has been minimized.
Thanks! I added some tests, please, let me know if you see something missing or wrong π Just realised tests on 3.7 seems broken, checking on local π€ |
Right π€¦ββοΈ Positional-only were introduced on 3.8. |
This comment has been minimized.
This comment has been minimized.
You can create a file specific for python 3.8+ tests and use a configuration file like this : https://github.com/PyCQA/pylint/blob/main/tests/functional/n/none_dunder_protocols_py38.rc |
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.
I installed this PR; it fixes my issue!
This comment has been minimized.
This comment has been minimized.
π So, I have some questions:
|
There is a problem with it currently I don't think your PR made this many unrelated new message appear. I'm betting on a return back to normal when the next run on main is fixed.
This is something that we're doing ourselves, don't worry. (We're going to cherry-pick your commit on a maintainance branch once it's merged in main). |
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.
Look pretty good already, thank you !
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.
Very nice fix, thank you !
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit 26d76b2 |
@@ -30,6 +30,10 @@ Extensions | |||
False positives fixed | |||
===================== | |||
|
|||
* The ``differing-param-doc`` check was triggered by positional only arguments. |
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.
@Pierre-Sassoulas I didn't notice this, but the changelog entry is in the wrong place. Should be 2.14.4
.
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.
I'm going to fix in the maintenance branch at release time.
* Read `posonly` args and annotations on `check_arguments_in_docstring` Co-authored-by: Pierre Sassoulas <[email protected]>
* Read `posonly` args and annotations on `check_arguments_in_docstring` Co-authored-by: Pierre Sassoulas <[email protected]>
Type of Changes
Description
Adds handling for positional only args, like it is done for keyword only:
arguments_node.posonlyargs
arguments_node.posonlyargs_annotations
Closes #6950