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 false negative for property-with-parameters #9592

Merged
merged 2 commits into from
May 3, 2024

Conversation

mbyrnepr2
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix
✨ New feature
πŸ”¨ Refactoring
πŸ“œ Docs

Description

Fix false negative for property-with-parameters in the case of parameters which are positional-only, keyword-only, variadic positional or variadic keyword.

Closes #9584

…rameters which are ``positional-only``, ``keyword-only``, ``variadic positional`` or ``variadic keyword``.

Closes pylint-dev#9584
@mbyrnepr2 mbyrnepr2 added the False Negative πŸ¦‹ No message is emitted but something is wrong with the code label May 2, 2024
Copy link

codecov bot commented May 2, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 95.81%. Comparing base (82ef647) to head (491375d).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9592   +/-   ##
=======================================
  Coverage   95.81%   95.81%           
=======================================
  Files         173      173           
  Lines       18825    18825           
=======================================
  Hits        18038    18038           
  Misses        787      787           
Files Coverage Ξ”
pylint/checkers/classes/class_checker.py 93.38% <100.00%> (ΓΈ)

This comment has been minimized.

@mbyrnepr2 mbyrnepr2 marked this pull request as ready for review May 2, 2024 21:38
@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.2.0 milestone May 3, 2024
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.

LGTM, thank you ! We could make the message confidence HIGH as we regenerate all the test output, but feel free to ignore and merge as is.

@mbyrnepr2
Copy link
Member Author

LGTM, thank you ! We could make the message confidence HIGH as we regenerate all the test output, but feel free to ignore and merge as is.

Sure let me make that change a little later before we merge(currently sitting in my car in the pouring Dutch rain while my daughter is napping in the back πŸ˜„)

@DanielNoord DanielNoord removed their request for review May 3, 2024 13:05
check and regenerate the functional tests.
Copy link
Contributor

github-actions bot commented May 3, 2024

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit 491375d

@Pierre-Sassoulas Pierre-Sassoulas merged commit 3c8be8e into pylint-dev:main May 3, 2024
44 checks passed
@mbyrnepr2 mbyrnepr2 deleted the 9584_false_negative branch May 3, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
False Negative πŸ¦‹ No message is emitted but something is wrong with the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

property-with-parameters only cares about non-self parameters if they're positional-or-keyword parameters
2 participants