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

Improve typing of builtins brain #2214

Merged

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Improve typing of this brain module.

Resolves 14 mypy errors.

Resolves 14 mypy errors
@codecov
Copy link

codecov bot commented Jun 18, 2023

Codecov Report

Merging #2214 (3e39101) into main (eabc643) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2214   +/-   ##
=======================================
  Coverage   92.71%   92.72%           
=======================================
  Files          94       94           
  Lines       10837    10848   +11     
=======================================
+ Hits        10048    10059   +11     
  Misses        789      789           
Flag Coverage Ξ”
linux 92.48% <100.00%> (+<0.01%) ⬆️
pypy 88.00% <100.00%> (+0.02%) ⬆️
windows 92.32% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Ξ”
astroid/arguments.py 99.24% <100.00%> (ΓΈ)
astroid/brain/brain_builtin_inference.py 91.84% <100.00%> (+0.19%) ⬆️

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.. Let's wait for Daniel's review though ;)

def _unpack_keywords(self, keywords, context: InferenceContext | None = None):
def _unpack_keywords(
self,
keywords: list[tuple[str | None, nodes.NodeNG]],
Copy link
Collaborator

Choose a reason for hiding this comment

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

I feel like b72eaa7 might have typed arg incorrectly. Will investigate this myself.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Turns out to be correct, weirdly enough..

@jacobtylerwalls jacobtylerwalls merged commit 842548d into pylint-dev:main Jun 20, 2023
@jacobtylerwalls jacobtylerwalls deleted the improve-builtins-brain-typing branch June 20, 2023 11:38
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