Skip to content

Factor out _uncertain_nodes_in_except_blocks() #5541

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

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
βœ“ πŸ”¨ Refactoring

Description

Requested by @cdce8p in #5506 (review).

I worked on a series of PRs for used-before-assignment false negatives, and I began by trying to make them rhyme with the surrounding list comprehensions. This became a bit absurd after adding another exception case in #5506, so this PR takes the worst offending list comprehension and factors it out. Performance boost from fewer calls to statement().

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1590417596

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

Totals Coverage Status
Change from base Build 1588201748: 0.006%
Covered Lines: 14251
Relevant Lines: 15217

πŸ’› - Coveralls

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.13.0 milestone Dec 17, 2021
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.

πŸ‘

@Pierre-Sassoulas Pierre-Sassoulas merged commit 8743d89 into pylint-dev:main Dec 17, 2021
@jacobtylerwalls jacobtylerwalls deleted the refactor-complex-comprehension branch December 17, 2021 12:01
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.

3 participants