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

Restore AssignAttr.infer_lhs() #2235

Merged

Conversation

jacobtylerwalls
Copy link
Member

@jacobtylerwalls jacobtylerwalls commented Jul 4, 2023

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Regression in 65df5e8.

Here is the kind of "helper function" I was referring to when I said I would remove the mixins added in #2171. (Three of them removed in #2231.) One method went missing during that latter PR.

I got tricked into thinking I didn't need that method, but it was just because both the pylint and astroid unit tests didn't cover it. Only the pylint stdlib primer suite caught it.

Closes pylint-dev/pylint#8823

@codecov
Copy link

codecov bot commented Jul 4, 2023

Codecov Report

Merging #2235 (a928b7f) into main (bf4d420) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2235   +/-   ##
=======================================
  Coverage   92.82%   92.83%           
=======================================
  Files          94       94           
  Lines       10930    10936    +6     
=======================================
+ Hits        10146    10152    +6     
  Misses        784      784           
Flag Coverage Ξ”
linux 92.58% <100.00%> (+<0.01%) ⬆️
pypy 90.94% <100.00%> (+<0.01%) ⬆️
windows 92.41% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Ξ”
astroid/nodes/node_classes.py 94.78% <100.00%> (+0.01%) ⬆️

@jacobtylerwalls jacobtylerwalls removed the request for review from nickdrozd July 4, 2023 19:44
@jacobtylerwalls jacobtylerwalls merged commit 9deb940 into pylint-dev:main Jul 4, 2023
@jacobtylerwalls jacobtylerwalls deleted the fix-assign-attr-regression branch July 4, 2023 19:44
Copy link
Collaborator

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

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

I like this approach much more than adding even more Mixins, but probably personal preference. Thanks for fixing it like this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pyreverse crash
3 participants