uninstall the old version of mypy so that the mypy
command won't point to the old one
pip3 uninstall mypy
use the version of typed_ast
from this PR: python/typed_ast#22
pip3 install -e git+https://github.com/kirbyfan64/typed_ast@fstring#egg=typed_ast
install the version of mypy
from @achauve's PR
pip3 install -e git+https://github.com/achauve/mypy@handle-f-string-without-error#egg=mypy
MyPy should be working. Test it out.
echo 'f"{foo{1}bar{2}"' > fstring_test.py
mypy --fast-parser --python 3.6 fstring_test.py