mypy
mypy copied to clipboard
Fix daemon crashes related to ParamSpec and TypeVarTuple
Fix daemon crash when using fine-grained caching and ParamSpec, with traceback like this (when using a compiled mypy):
Traceback (most recent call last):
File "mypy/dmypy_server.py", line 230, in serve
File "mypy/dmypy_server.py", line 273, in run_command
File "mypy/dmypy_server.py", line 372, in cmd_recheck
File "mypy/dmypy_server.py", line 529, in fine_grained_increment
File "mypy/server/update.py", line 245, in update
File "mypy/server/update.py", line 328, in update_one
File "mypy/server/update.py", line 387, in update_module
File "mypy/server/astdiff.py", line 158, in snapshot_symbol_table
File "mypy/server/astdiff.py", line 236, in snapshot_type
File "mypy/types.py", line 1173, in accept
File "mypy/server/astdiff.py", line 300, in visit_instance
File "mypy/nodes.py", line 2764, in fullname
AttributeError: attribute 'TypeInfo' of '_fullname' undefined
Also fix TypeVarTuple crashes when using daemon.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉