-
-
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
Core dumped when using JSON.loads with a recursive type #13795
Labels
Comments
cc @ilevkivskyi |
Thanks for the report!
|
Yep, should be a few line fix (unless I am missing something). |
After all my fix turned out to be more like a hack, so I tried to come with a more robust solution in #13808 |
hauntsaninja
pushed a commit
that referenced
this issue
Oct 8, 2022
Fixes #13795 Calculating tuple fallbacks on the fly creates a cycle between joins and subtyping. Although IMO this is conceptually not a right thing, it is hard to get rid of (unless we want to use unions in the fallbacks, cc @JukkaL). So instead I re-worked how `join_types()` works w.r.t. `get_proper_type()`, essentially it now follows the golden rule "Always pass on the original type if possible".
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
To Reproduce
My code:
mypy 0.981 using python 3.10.6 on linux x64
Your Environment
--enable-recurisve-aliases
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: