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

Handle asterisks better in Sphinx and Google style docstrings #6212

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

DanielNoord
Copy link
Collaborator

  • 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.

Type of Changes

Type
🐛 Bug fix

Description

Closes #5815, closes #5406.

See the tests for what is allowed now. Asterisks are no longer required and will be parsed correctly in Google style. I have chosen to fix this in the extension itself. Internally we still see the argument names including the asterisk, but when we finally check if we should emit the warning we also check whether the name without asterisks exists. If so, we don't emit.

@DanielNoord DanielNoord added this to the 2.13.6 milestone Apr 7, 2022
@DanielNoord DanielNoord added Bug 🪲 Needs backport Needs to be cherry-picked on the current patch version by a pylint's maintainer False Positive 🦟 A message is emitted but nothing is wrong with the code labels Apr 7, 2022
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.

Great job adding/updating the typing at the same time !

@coveralls
Copy link

Pull Request Test Coverage Report for Build 2107626860

  • 13 of 13 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.004%) to 94.533%

Totals Coverage Status
Change from base Build 2105161025: 0.004%
Covered Lines: 15753
Relevant Lines: 16664

💛 - Coveralls

@DanielNoord
Copy link
Collaborator Author

I think this warrants one final patch release on 3.6 considering the amount of feedback we got about this 😅

@DanielNoord DanielNoord merged commit 3b744d1 into pylint-dev:main Apr 7, 2022
@DanielNoord DanielNoord deleted the kwargs branch April 7, 2022 08:43
@Pierre-Sassoulas
Copy link
Member

I'm waiting for #5822 to be merged to release the last patch. I burst between 2.13.5 and 2.13.6 to release sooner because there was a crash fix that was waiting for a long time already.

@Pierre-Sassoulas Pierre-Sassoulas added Backported and removed Needs backport Needs to be cherry-picked on the current patch version by a pylint's maintainer labels Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backported Bug 🪲 False Positive 🦟 A message is emitted but nothing is wrong with the code
Projects
None yet
3 participants