I ran mypy in my venv and the cache somehow got into a bad state, leading to crashes until the cache was removed. I don't know what triggered this. If it matters, the mypy that caused the bad cache was installed with faster-cache.
Traceback (most recent call last):
File "[...]/.venv/bin/mypy", line 8, in <module>
sys.exit(console_entry())
~~~~~~~~~~~~~^^
File "[...]/.venv/lib/python3.13/site-packages/mypy/__main__.py", line 15, in console_entry
main()
~~~~^^
File "mypy/main.py", line 109, in main
File "mypy/main.py", line 193, in run_build
File "mypy/build.py", line 194, in build
File "mypy/build.py", line 269, in _build
File "mypy/build.py", line 2940, in dispatch
File "mypy/build.py", line 3331, in process_graph
File "mypy/build.py", line 3409, in process_fresh_modules
File "mypy/build.py", line 2096, in load_tree
File "mypy/nodes.py", line 402, in deserialize
File "mypy/nodes.py", line 4058, in deserialize
File "mypy/nodes.py", line 3999, in deserialize
File "mypy/nodes.py", line 263, in deserialize
File "mypy/nodes.py", line 3420, in deserialize
File "mypy/nodes.py", line 4058, in deserialize
File "mypy/nodes.py", line 3999, in deserialize
File "mypy/nodes.py", line 263, in deserialize
File "mypy/nodes.py", line 952, in deserialize
File "mypy/nodes.py", line 879, in deserialize
KeyError: 'deprecated'
Crash Report
I ran mypy in my venv and the cache somehow got into a bad state, leading to crashes until the cache was removed. I don't know what triggered this. If it matters, the mypy that caused the bad cache was installed with
faster-cache.Traceback
To Reproduce
repro.zip
Your Environment
mypy.ini(and other config files):strict = true