Skip to content
Merged
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
10 changes: 6 additions & 4 deletions mypy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1677,13 +1677,15 @@ def process_cache_map(
parser.error(f"Duplicate --cache-map source {source})")
if not source.endswith(".py") and not source.endswith(".pyi"):
parser.error(f"Invalid --cache-map source {source} (triple[0] must be *.py[i])")
if not meta_file.endswith(".meta.json"):
if not meta_file.endswith((".meta.json", ".meta.ff")):
parser.error(
"Invalid --cache-map meta_file %s (triple[1] must be *.meta.json)" % meta_file
"Invalid --cache-map meta_file %s (triple[1] must be *.meta.json or *.meta.ff)"
% meta_file
)
if not data_file.endswith(".data.json"):
if not data_file.endswith((".data.json", ".data.ff")):
parser.error(
"Invalid --cache-map data_file %s (triple[2] must be *.data.json)" % data_file
"Invalid --cache-map data_file %s (triple[2] must be *.data.json or *.data.ff)"
% data_file
)
options.cache_map[source] = (meta_file, data_file)

Expand Down
Loading