mypy
Fix crash in astdiff and clean it up
#14497
Merged

Loading