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

[Backport maintenance/3.1.x] Fix a false positive for consider-using-dict-items #9597

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 4, 2024

Backport c864cd4 from #9594.

When iterating ``os.environ`` using the ``os.environ.keys()`` operation and then deleting an item using the key as a lookup.

Closes #9554

Co-authored-by: Pierre Sassoulas <[email protected]>>
(cherry picked from commit c864cd4)
@Pierre-Sassoulas Pierre-Sassoulas added the False Positive 🦟 A message is emitted but nothing is wrong with the code label May 4, 2024
@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.1.1 milestone May 4, 2024
Copy link

codecov bot commented May 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.82%. Comparing base (b8b9abd) to head (915a3ba).

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##           maintenance/3.1.x    #9597   +/-   ##
==================================================
  Coverage              95.82%   95.82%           
==================================================
  Files                    173      173           
  Lines                  18801    18803    +2     
==================================================
+ Hits                   18016    18018    +2     
  Misses                   785      785           
Files Coverage Δ
...int/checkers/refactoring/recommendation_checker.py 96.56% <100.00%> (+0.03%) ⬆️

@Pierre-Sassoulas Pierre-Sassoulas enabled auto-merge (squash) May 4, 2024 20:06
@Pierre-Sassoulas Pierre-Sassoulas merged commit cf102ff into maintenance/3.1.x May 4, 2024
25 checks passed
@Pierre-Sassoulas Pierre-Sassoulas deleted the backport-9594-to-maintenance/3.1.x branch May 4, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
False Positive 🦟 A message is emitted but nothing is wrong with the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants