-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Import CircuitInstruction to fix Pylance complaint #13579
base: main
Are you sure you want to change the base?
Conversation
One or more of the following people are relevant to this code:
|
Pull Request Test Coverage Report for Build 12401989194Details
💛 - Coveralls |
If we change this, it would be good to have a guideline and a check by CI/linter. Otherwise we cannot ensure we're consistent here and this change seems a bit arbitrary. I've used Pylance as well, aren't there also other things it complains about? E.g. using |
c2397e3
to
da6cd86
Compare
Does the change still seem arbitrary after the latest commit? I think it brings it more in line with the rest of Qiskit, since we normally import stuff rather than setting a variable like it was before.
I don't know, this is the only one that I noticed. |
Summary
Using
CircuitInstruction
in a type annotation causes Pylance to complainThis fixes that.
Details and comments