You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> mypy .
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "c:\Code\project\.venv\Scripts\mypy.exe\__main__.py", line 8, in <module>
File "C:\Code\project\.venv\Lib\site-packages\mypy\__main__.py", line 15, in console_entry
main()
File "mypy\main.py", line 100, in main
File "mypy\main.py", line 182, in run_build
File "mypy\build.py", line 192, in build
File "mypy\build.py", line 266, in _build
File "mypy\build.py", line 2942, in dispatch
File "mypy\build.py", line 3333, in process_graph
File "mypy\build.py", line 3411, in process_fresh_modules
File "mypy\build.py", line 2099, in load_tree
File "mypy\nodes.py", line 399, in deserialize
File "mypy\nodes.py", line 3945, in deserialize
File "mypy\nodes.py", line 3886, in deserialize
File "mypy\nodes.py", line 260, in deserialize
File "mypy\nodes.py", line 3315, in deserialize
File "mypy\nodes.py", line 3945, in deserialize
File "mypy\nodes.py", line 3886, in deserialize
File "mypy\nodes.py", line 260, in deserialize
File "mypy\nodes.py", line 824, in deserialize
File "mypy\types.py", line 224, in deserialize_type
result.overwrite_doc = self.overwrite_doc
File "mypy\types.py", line 2266, in deserialize
KeyError: 'type_is'
To Reproduce
I am sorry I do not have reproduction steps. This happened about 5 times across two days, and when it happened, it always fixed itself by running mypy 2 or 3 more times. (Maybe that invalidates the cache?)
Your Environment
Mypy version used: mypy 1.10.0 (compiled: yes)
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files):
Yes, this is impossible to reproduce consistently. When I hit the issue, I can run mypy repeatedly, and it reproduces the same error many times. But as soon as I run mypy --cache-dir=nul, the issue is gone.
Crash Report
mypy crashes.
Traceback
To Reproduce
I am sorry I do not have reproduction steps. This happened about 5 times across two days, and when it happened, it always fixed itself by running
mypy
2 or 3 more times. (Maybe that invalidates the cache?)Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: