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

Fix overzealous arguments-differ for variadics #3001

Conversation

mattlbeck
Copy link
Contributor

@mattlbeck mattlbeck commented Jul 11, 2019

Steps

  • Add yourself to CONTRIBUTORS if you are a new contributor.
  • Add a ChangeLog entry describing what your PR does.
  • If it's a new feature or an important bug fix, add a What's New entry in doc/whatsnew/<current release.rst>.
  • Write a good description on what the PR does.

Description

This PR suppresses the arguments-differ message if the overriding function provides positional or keyword variadics in its signature that can feasibly accept and pass on all parameters given by the overridden function.

Type of Changes

Type
🐛 Bug fix

Related Issue

Closes #1482
Closes #1553

@coveralls
Copy link

coveralls commented Jul 11, 2019

Coverage Status

Coverage increased (+0.005%) to 90.298% when pulling 56b3ded on mattlbeck:issue/1482-arguments-differ-variadics into d88f2f7 on PyCQA:master.

@iwanbolzern
Copy link

Is there any progress on this?

@Pierre-Sassoulas Pierre-Sassoulas self-assigned this Feb 24, 2020
@Pierre-Sassoulas
Copy link
Member

I'm going to tackle this in order to merge if it's alright for you @mattlbeck

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

This looks good, and the test cases are on point. Good job! I rebased this on the current master branch and I think there's nothing to change before merging.

@Pierre-Sassoulas
Copy link
Member

@PCManticore it seems that the problem with Appveyor being stuck can only be fixed by an administrator (Source: appveyor/ci#1848). Could you check that, please ? I don't know if this problem happens often though. Maybe simply mergeing anyway would do?

mattlbeck and others added 2 commits March 27, 2020 08:07
No message is emitted if the overriding function provides positional or
keyword variadics in its signature that can feasibly accept and pass on
all parameters given by the overridden function.

Closes pylint-dev#1482
Closes pylint-dev#1553
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the issue/1482-arguments-differ-variadics branch from c62dcf7 to 56b3ded Compare March 27, 2020 07:08
@Pierre-Sassoulas Pierre-Sassoulas merged commit 0dc089f into pylint-dev:master Mar 27, 2020
@Pierre-Sassoulas
Copy link
Member

Thanks @mattlbeck, great MR.

@enzbus
Copy link

enzbus commented Dec 13, 2023

Hello, is there any progress on this, or has the Pylint team decided to keep the current behavior? Thanks @Pierre-Sassoulas

@Pierre-Sassoulas
Copy link
Member

Hey, it's been merged 4 years ago, so it's available on pretty much all versions you would want to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positive for arguments-differ when collecting all arguments arguments-differ and default parameters
5 participants