Skip to content

Commit 0ca1f2a

Browse files
ilevkivskyiKevinRK29
authored andcommitted
Expose --fixed-format-cache if compiled (#19815)
(cherry picked from commit fd05265)
1 parent 2ce1bb2 commit 0ca1f2a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

mypy/main.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,13 @@ def add_invertible_flag(
10641064
help="Include fine-grained dependency information in the cache for the mypy daemon",
10651065
)
10661066
incremental_group.add_argument(
1067-
"--fixed-format-cache", action="store_true", help=argparse.SUPPRESS
1067+
"--fixed-format-cache",
1068+
action="store_true",
1069+
help=(
1070+
"Use experimental fast and compact fixed format cache"
1071+
if compilation_status == "yes"
1072+
else argparse.SUPPRESS
1073+
),
10681074
)
10691075
incremental_group.add_argument(
10701076
"--skip-version-check",

0 commit comments

Comments
 (0)