Skip to content

Commit 701c51e

Browse files
committed
Beter way to force
1 parent 18bf116 commit 701c51e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

mypy/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ def main(
9797
stdout, stderr, options.hide_error_codes, hide_success=bool(options.output)
9898
)
9999

100+
options.num_workers = 2
101+
if options.cache_dir == os.devnull:
102+
options.cache_dir = defaults.CACHE_DIR
103+
100104
if options.num_workers:
101105
# Supporting both parsers would be really tricky, so just support the new one.
102106
options.native_parser = True
@@ -1168,7 +1172,7 @@ def add_invertible_flag(
11681172

11691173
# Experimental parallel type-checking support.
11701174
internals_group.add_argument(
1171-
"-n", "--num-workers", type=int, default=2, help=argparse.SUPPRESS
1175+
"-n", "--num-workers", type=int, default=0, help=argparse.SUPPRESS
11721176
)
11731177

11741178
report_group = parser.add_argument_group(

0 commit comments

Comments
 (0)