-
-
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
Accept a comma-separated list of messages IDs in --help-msg
#7490
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.
Looks pretty straightforward. I would have thought that the parsing would be done by the same function that disable/enable (to handle "all") but it works and it's simple.
pylint/config/callback_actions.py
Outdated
@@ -158,6 +158,8 @@ def __call__( | |||
option_string: str | None = "--help-msg", | |||
) -> None: | |||
assert isinstance(values, (list, tuple)) | |||
assert isinstance(values[0], str) |
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.
Shouldn't we change the typing line 157 then ?
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.
The typing
comes from argparse
. I believe mypy
starts complaining if we narrow down in the signature.
That function isn't really accessible. I changed it to use the |
Pull Request Test Coverage Report for Build 3082035324
💛 - Coveralls |
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉 This comment was generated for commit 35a5a6f |
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.
👌
towncrier create <IssueNumber>.<type>
which will beincluded in the changelog.
<type>
can be one of: new_check, removed_check, extension,false_positive, false_negative, bugfix, other, internal. If necessary you can write
details or offer examples on how the new change is supposed to work.
and preferred name in
script/.contributors_aliases.json
Type of Changes
Description
Closes #7471.