-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
1.7 Crash on recursive type #16473
Labels
Comments
AlexWaygood
added
topic-recursive-types
topic-overlap
Overlapping equality check
labels
Nov 13, 2023
Simpler repro: rather than running |
Bisects to a3af87b (cc. @ilevkivskyi) |
ilevkivskyi
added a commit
that referenced
this issue
Nov 15, 2023
Fixes #16473 Potentially we can turn this helper function into a proper visitor, but I don't think it is worth it as of right now. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
JukkaL
pushed a commit
that referenced
this issue
Nov 22, 2023
Fixes #16473 Potentially we can turn this helper function into a proper visitor, but I don't think it is worth it as of right now. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
I have a recursive type
NestedDict = dict[str, "NestedDict"]
. Using it in a separate module causes a Segmentation fault withmypy --strict
.This worked with 1.6.1, but failed with 1.7 and also with
master
.Traceback
Using the non-compiled 1.7 and
master
version results in this:To Reproduce
Code and instructions in this repo: https://github.com/NMertsch/mypy-repro.
tl;dr: I define a recursive type
NestedDict = dict[str, "NestedDict"]
. Using it in the same file is fine, but in my tests, it causes a crash.Your Environment
master
, commit efa5dcb (reproducible with 1.7, works with 1.6.1)--strict
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: