Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/source/config_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ section of the command line docs.

``cache_dir`` (string, default ``.mypy_cache``)
Specifies the location where mypy stores incremental cache info.
User home directory and environment variables will be expanded.

Note that the cache is only read when incremental mode is enabled
but is always written to, unless the value is set to ``/dev/nul``
(UNIX) or ``nul`` (Windows).
Expand Down
2 changes: 1 addition & 1 deletion mypy/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def parse_section(prefix: str, template: Options,
print("%s%s: %s" % (prefix, key, err), file=stderr)
continue
if key == 'cache_dir':
v = os.path.expanduser(v)
v = os.path.expandvars(os.path.expanduser(v))
if key == 'silent_imports':
print("%ssilent_imports has been replaced by "
"ignore_missing_imports=True; follow_imports=skip" % prefix, file=stderr)
Expand Down