-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix the possibly-used-before-assignment in pylint #12542
Fix the possibly-used-before-assignment in pylint #12542
Conversation
One or more of the following people are relevant to this code:
|
Pull Request Test Coverage Report for Build 9467737904Details
💛 - Coveralls |
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 this!
qiskit/transpiler/passes/optimization/commutative_cancellation.py
Outdated
Show resolved
Hide resolved
qiskit/transpiler/passes/optimization/commutative_cancellation.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Jake Lishman <[email protected]>
…0/qiskit-terra into possibly-used-before-assignment/1
Pull Request Test Coverage Report for Build 9495986714Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9496759963Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
* fix the possibly-used-before-assignment in pylint * qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py * test.python.quantum_info.operators.test_utils * Apply suggestions from code review Co-authored-by: Jake Lishman <[email protected]> * https://github.com/Qiskit/qiskit/pull/12542/files#r1636214044 * RuntimeError * RuntimeError --------- Co-authored-by: Jake Lishman <[email protected]>
In #12520 @jakelishman mentioned that would be great to enable
possibly-used-before-assignment
introduced in pylint 3.2Here it is.