Skip to content

Conversation

@Pierre-Sassoulas
Copy link
Member

Type of Changes

Type
βœ“ πŸ”¨ Refactoring

Description

The need to call an exec on a string is worst performance wise, and we also have the benefit of being able to add typing with the new way of doing it.

@Pierre-Sassoulas Pierre-Sassoulas added Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news πŸ”‡ This change does not require a changelog entry labels Nov 5, 2022
The init needs to analyse a string with the old way of doing things,
which is not the best in term of performance. We also have the benefit
of being able to add typing with the new way of doing it.
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the modern-fast-named-tuple-definition branch from 853a3df to 7bdebdc Compare November 5, 2022 15:35
@coveralls
Copy link

coveralls commented Nov 5, 2022

Pull Request Test Coverage Report for Build 3400662756

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

Totals Coverage Status
Change from base Build 3400616241: 0.0008%
Covered Lines: 17242
Relevant Lines: 18077

πŸ’› - Coveralls

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2022

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

This comment was generated for commit 7bdebdc

@cdce8p cdce8p changed the title Use modern named tuple with type instead of old 'exec' definition Use typed NamedTuple for Confidence + PragmaRepresenter Nov 5, 2022
@cdce8p cdce8p merged commit 60a2db2 into pylint-dev:main Nov 5, 2022
@Pierre-Sassoulas Pierre-Sassoulas deleted the modern-fast-named-tuple-definition branch November 5, 2022 18:38
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 pylint or the dev workflow Skip news πŸ”‡ This change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants