Other advice and best practices

There are multiple ways of telling mypy what files to type check, rangingfrom passing in command line arguments to using the files or mypy_pathconfig file options to setting theMYPYPATH environment variable.

However, in practice, it is usually sufficient to just use eithercommand line arguments or the files config file option (the twoare largely interchangeable).

Setting mypy_path/MYPYPATH is mostly useful in the casewhere you want to try running mypy against multiple distinctsets of files that happen to share some common dependencies.

For example, if you have multiple projects that happen to beusing the same set of work-in-progress stubs, it could beconvenient to just have your MYPYPATH point to a singledirectory containing the stubs.