-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Crash when analysing qiskit #11981
Labels
Comments
Thanks for the report! I am able to reproduce it on your project.
Now trying to create a minimal repro. |
Turns out - I can't. Any ideas how can we do that? |
This was referenced Mar 26, 2022
JukkaL
pushed a commit
that referenced
this issue
Jul 8, 2022
Attributes can still be partially typed (e.g. `<partial list[?]>`) after a parent-class definition if the block they are declared in is deferred. The first pass for child classes might then encounter this type when considering method overrides, which could cause a crash when attempting to determine subtype compatibility. Fixes #11686 Fixes #11981
Gobot1234
pushed a commit
to Gobot1234/mypy
that referenced
this issue
Aug 12, 2022
Attributes can still be partially typed (e.g. `<partial list[?]>`) after a parent-class definition if the block they are declared in is deferred. The first pass for child classes might then encounter this type when considering method overrides, which could cause a crash when attempting to determine subtype compatibility. Fixes python#11686 Fixes python#11981
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
Running mypy on a library where typing has recently been added causes a crash while analyzing this line:
https://github.com/Qiskit/qiskit-terra/blob/main/qiskit/circuit/library/blueprintcircuit.py#L72
Traceback
To Reproduce
Install the development version of
qiskit-terra
and add the marker that it should be typechecked.Qiskit/qiskit@02f9a80
run mypy on one of the files in qiskit:
mypy qiskit-terra/qiskit/providers/backend.py
Your Environment
qiskit-terra/qiskit/providers/backend.py --show-traceback
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: