Skip to content

Refactor field inference to _get_namedtuple_fields#1413

Merged
DanielNoord merged 3 commits into
pylint-dev:mainfrom
DanielNoord:namedtuple-3
Jul 1, 2022
Merged

Refactor field inference to _get_namedtuple_fields#1413
DanielNoord merged 3 commits into
pylint-dev:mainfrom
DanielNoord:namedtuple-3

Conversation

@DanielNoord
Copy link
Copy Markdown
Collaborator

Steps

  • Write a good description on what the PR does.

Description

Seeing as the other PR got merged quite fast, this is another attempt at extracting some code from #1306.

Again, no rush in reviewing.

Type of Changes

Type
🔨 Refactoring

Related Issue

@DanielNoord DanielNoord added the Maintenance Discussion or action around maintaining astroid or the dev workflow label Feb 28, 2022
Copy link
Copy Markdown
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, but I'm way over my expertise in astroid level here 😄

@coveralls
Copy link
Copy Markdown

coveralls commented Jul 1, 2022

Pull Request Test Coverage Report for Build 2595175199

  • 14 of 14 (100.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.004%) to 92.104%

Files with Coverage Reduction New Missed Lines %
astroid/brain/brain_namedtuple_enum.py 2 93.33%
Totals Coverage Status
Change from base Build 2593292958: -0.004%
Covered Lines: 9414
Relevant Lines: 10221

💛 - Coveralls

@DanielNoord
Copy link
Copy Markdown
Collaborator Author

@Pierre-Sassoulas Would you be okay with me merging this? It's just a refactor and the coverage drop is in if util.Uninferable branches showing that we are actually inferring more now or handling exceptions at different places.

@Pierre-Sassoulas
Copy link
Copy Markdown
Member

Sure let's merge this !

@DanielNoord DanielNoord merged commit 9531e03 into pylint-dev:main Jul 1, 2022
@DanielNoord DanielNoord deleted the namedtuple-3 branch July 1, 2022 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance Discussion or action around maintaining astroid or the dev workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants