Skip to content
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

Add regression test for #5771 #5908

Merged

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Closes #5771
Refs pylint-dev/astroid#1382

Pardon me if this shouldn't go in 2.13! I just noticed no regression test PR for it yet, even though it's already fixed. Feel free to bump the milestone.

@jacobtylerwalls jacobtylerwalls added this to the 2.13.0 milestone Mar 13, 2022
argnames = list(
itertools.chain(node.argnames(), [arg.name for arg in node.args.kwonlyargs])
)
argnames = node.argnames()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed leveraging the changes in astroid to simplify this here: #5771 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty nice simplification !

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1975120334

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 94.051%

Totals Coverage Status
Change from base Build 1974427310: 0.0%
Covered Lines: 15066
Relevant Lines: 16019

πŸ’› - Coveralls

argnames = list(
itertools.chain(node.argnames(), [arg.name for arg in node.args.kwonlyargs])
)
argnames = node.argnames()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty nice simplification !

@Pierre-Sassoulas Pierre-Sassoulas added Astroid Related to astroid False Positive 🦟 A message is emitted but nothing is wrong with the code labels Mar 13, 2022
@Pierre-Sassoulas Pierre-Sassoulas merged commit 8d57195 into pylint-dev:main Mar 13, 2022
@jacobtylerwalls jacobtylerwalls deleted the kwonly-regression-test branch March 13, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Astroid Related to astroid False Positive 🦟 A message is emitted but nothing is wrong with the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positive W0613 with keyword only argument
3 participants