Skip to content

Fix false negative for consider-using-augmented-assign on dicts/lists #8964

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

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

crazybolillo
Copy link
Contributor

Assignments on dictionaries which used the same slices were not generating consider-using-augmented-assign messages. This has been fixed.

Closes #8959.

Type of Changes

Type
βœ“ πŸ› Bug fix

@crazybolillo crazybolillo requested a review from cdce8p as a code owner August 18, 2023 20:00
@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Merging #8964 (06926b6) into main (a0ce6e4) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8964   +/-   ##
=======================================
  Coverage   95.75%   95.75%           
=======================================
  Files         173      173           
  Lines       18592    18604   +12     
=======================================
+ Hits        17802    17815   +13     
+ Misses        790      789    -1     
Files Changed Coverage Ξ”
pylint/checkers/utils.py 95.91% <100.00%> (+0.14%) ⬆️

@crazybolillo crazybolillo force-pushed the i8959-crazybolillo branch 3 times, most recently from 5d3355b to a5659dd Compare August 18, 2023 21:15
@crazybolillo crazybolillo changed the title Fix false_negative for consider-using-augmented-assign on dicts Fix false negative for consider-using-augmented-assign on dicts/lists Aug 18, 2023
@crazybolillo crazybolillo changed the title Fix false negative for consider-using-augmented-assign on dicts/lists Fix false negative for consider-using-augmented-assign on dicts/lists Aug 18, 2023
@cdce8p cdce8p removed their request for review August 20, 2023 10:26
@crazybolillo crazybolillo force-pushed the i8959-crazybolillo branch 4 times, most recently from 0a010dc to 06926b6 Compare August 22, 2023 16:26
Assignments on dictionaries or lists which used the same subscripts were not
generating `consider-using-augmented-assign` messages. This has been
fixed.

Closes pylint-dev#8959.
@Pierre-Sassoulas Pierre-Sassoulas added the Needs review πŸ” Needs to be reviewed by one or multiple more persons label Aug 23, 2023
@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.0.0a8 milestone Aug 23, 2023
@Pierre-Sassoulas Pierre-Sassoulas self-requested a review August 23, 2023 08:18
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, there's no new false negatives in the primer, the code itself is pretty clean and the tests are nice, good job πŸ‘

@Pierre-Sassoulas Pierre-Sassoulas added False Negative πŸ¦‹ No message is emitted but something is wrong with the code and removed Needs review πŸ” Needs to be reviewed by one or multiple more persons labels Aug 23, 2023
@Pierre-Sassoulas Pierre-Sassoulas merged commit cb82423 into pylint-dev:main Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
False Negative πŸ¦‹ No message is emitted but something is wrong with the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False negative for consider-using-augmented-assign for nested dicts
2 participants