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

Prevent returning an empty list for ClassDef.slots() #1861

Merged
merged 3 commits into from Nov 3, 2022

Conversation

mbyrnepr2
Copy link
Member

Prevent returning an empty list for ClassDef.slots() when the mro list contains one class & it is not object.

Steps

  • For new features or bug fixes, add a ChangeLog entry describing what your PR does.
  • Write a good description on what the PR does.

Description

Type of Changes

Type
🐛 Bug fix
✨ New feature
🔨 Refactoring
📜 Docs

Related Issue

Refs pylint-dev/pylint#5099

@mbyrnepr2 mbyrnepr2 added this to the 2.13.0 milestone Nov 2, 2022
@coveralls
Copy link

coveralls commented Nov 2, 2022

Pull Request Test Coverage Report for Build 3385374004

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 92.273%

Totals Coverage Status
Change from base Build 3367353146: 0.001%
Covered Lines: 9864
Relevant Lines: 10690

💛 - Coveralls

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 !

@mbyrnepr2 mbyrnepr2 marked this pull request as ready for review November 3, 2022 07:23
astroid/nodes/scoped_nodes/scoped_nodes.py Outdated Show resolved Hide resolved
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
@cdce8p cdce8p modified the milestones: 2.13.0, 2.12.13 Nov 3, 2022
Copy link
Member

@cdce8p cdce8p left a comment

Choose a reason for hiding this comment

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

Thanks, @mbyrnepr2 👍🏻
I've tagged this for 2.12.13.

@cdce8p cdce8p merged commit 2d34699 into pylint-dev:main Nov 3, 2022
@mbyrnepr2 mbyrnepr2 deleted the pylint_issue_5099 branch November 3, 2022 20:39
Pierre-Sassoulas pushed a commit that referenced this pull request Nov 19, 2022
Prevent returning an empty list for `ClassDef.slots()` when the mro list contains one class & it is not `object`. Refs pylint-dev/pylint#5099

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Pierre-Sassoulas pushed a commit that referenced this pull request Nov 19, 2022
Prevent returning an empty list for `ClassDef.slots()` when the mro list contains one class & it is not `object`. Refs pylint-dev/pylint#5099

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants