Running mypy and managing imports
The Getting started page should have already introduced youto the basics of how to run mypy – pass in the files and directoriesyou want to type check via the command line:
- $ mypy foo.py bar.py some_directory
This page discusses in more detail how exactly to specify what filesyou want mypy to type check, how mypy discovers imported modules,and recommendations on how to handle any issues you may encounteralong the way.
If you are interested in learning about how to configure theactual way mypy type checks your code, see ourThe mypy command line guide.