-
-
Notifications
You must be signed in to change notification settings - Fork 301
Use safe_infer
in _unpack_args
and _unpack_keywords
#2117
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
Use safe_infer
in _unpack_args
and _unpack_keywords
#2117
Conversation
This is causing one test for me to fail locally, but seems not relevant:
|
for more information, see https://pre-commit.ci
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2117 +/- ##
==========================================
+ Coverage 92.76% 92.80% +0.04%
==========================================
Files 94 94
Lines 10972 10955 -17
==========================================
- Hits 10178 10167 -11
+ Misses 794 788 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks ! I feel like there's a lot of place that could use safe_infer too in astroid.
278b0f6
A test failed due to the change it seems:
|
safe_infer
to infer value for Starred
node in _unpack_args
safe_infer
in _unpack_args
and _unpack_keywords
for more information, see https://pre-commit.ci
The new result shows an improved inference result. The test was added just to test a crash, and it's being unnecessarily specific in comparing against |
This has the potential to raise more pylint messages as inference is changing, so I don't think it should be backported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a changelog entry for 2.16?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
Type of Changes
Description
Fixes pylint-dev/pylint#8544