-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
dmypy: INTERNAL ERROR: AssertionError in _add_error_info() #15486
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
Comments
Did you mean to also provide the contents of |
(Unfortunately I can't share the codebase that this is interacting with.) |
I'm seeing a very similar stacktrace after upgrading to the latest mypy 1.14.1:
I'm running Here's the code base: https://github.com/gerner/stellarpunk/tree/668ea4996ea17bb1da64ea80192c825074f74435 Sorry I don't have a minimal repro case, but I'm happy to help out. I'm just not familiar with MyPy internals enough to quickly whip up a minimal repro. |
Looks like this is same crash as in #18396 |
1.0.0 is incredibly slow (like a minute or more to run from a fresh start on this code base). now I remember why I started using dmypy in the first place. no crash, but a ton of syntax errors that aren't picked up by 1.14.1 (must be newer python features I'm using). so this must be older than the version I was using before my most recent upgrade 1.10.0 is faster (about as fast as 1.14.1). I see PEP 695 generics not supportd warning which is probably the feature I'm using. No crash. 1.12.0 All those spurious syntax errors are gone. No crash. 1.13.0 no crash 1.14.0 crash on 3rd run of According to pypi it seems there's no versions between 1.13.0 and 1.14.0 I'll post this to #18396 too. |
Crash Report
Just trying out dmypy for the first time and I encountered the below issue when trying to check an individual file after starting the daemon and checking the entire source repository.
Repro / Traceback
Observations
scratch.py
has an error it it. If I 'fix' the error in that file, the crash does not occur, though the curiosity of re-checking the individual file taking nearly a minute remains.Environment
mypy.ini
(and other config files): Can repro with empty mypy.iniThe text was updated successfully, but these errors were encountered: