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
Removing consider-using-dict-items from lint exclusions and updates #12288
Removing consider-using-dict-items from lint exclusions and updates #12288
Conversation
Pull Request Test Coverage Report for Build 9026301042Details
💛 - Coveralls |
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the the following people are requested to review this:
|
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.
LGTM. The primitive object in question only gained .items()
the other day, so thanks for catching!
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 looking at these.
I should have been clear in my review description: I was looking mainly at the primitives module and was glad for the change. I did look elsewhere for general correctness, but not with an eye to decide whether the change was a net benefit. |
…-lint-rule' into remove-consider-using-dict-items-lint-rule
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.
This has gained a couple of minor merge conflicts, but otherwise I think it's good to go.
# Conflicts: # pyproject.toml # test/python/primitives/test_backend_sampler_v2.py # test/python/primitives/test_statevector_sampler.py
LGTM |
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.
This looks good, thanks for the changes! (Not sure if the typo fixes in SECURITY.md
were meant for this PR, but it's fine - they're obviously correct and just minor.)
- Fix lint stray imports.
Summary
#9614 test for removing
consider-using-dict-items
Details and comments
Updates for removing the consider-using-dict-items rule if wanted. Open to suggestions on variable names