Using a development mypy build

You can install the latest development version of mypy from source. Clone themypy repository on GitHub, and then runpip install locally:

  1. git clone --recurse-submodules https://github.com/python/mypy.git
  2. cd mypy
  3. sudo python3 -m pip install --upgrade .