Incremental mode

These options may only be set in the global section ([mypy]).

  • incremental (bool, default True)
  • Enables incremental mode.
  • cache_dir (string, default .mypy_cache)
  • Specifies the location where mypy stores incremental cache info.User home directory and environment variables will be expanded.This setting will be overridden by the MYPY_CACHE_DIR environmentvariable.

Note that the cache is only read when incremental mode is enabledbut is always written to, unless the value is set to /dev/null(UNIX) or nul (Windows).

  • sqlite_cache (bool, default False)
  • Use an SQLite database to store the cache.
  • cache_fine_grained (bool, default False)
  • Include fine-grained dependency information in the cache for the mypy daemon.
  • skip_version_check (bool, default False)
  • Makes mypy use incremental cache data even if it was generated by adifferent version of mypy. (By default, mypy will perform a versioncheck and regenerate the cache if it was written by older versions of mypy.)
  • skip_cache_mtime_checks (bool, default False)
  • Skip cache internal consistency checks based on mtime.