From 0573a2f388833aa9090402257273ddf67c17c8ba Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Thu, 18 Sep 2025 03:08:08 +0700 Subject: [PATCH] Move fine-grained-cache out of misc into incremental group --- mypy/main.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/mypy/main.py b/mypy/main.py index b543cd33fe44..7726ba9bfd61 100644 --- a/mypy/main.py +++ b/mypy/main.py @@ -1063,6 +1063,12 @@ def add_invertible_flag( action="store_true", help="Include fine-grained dependency information in the cache for the mypy daemon", ) + if server_options: + incremental_group.add_argument( + "--use-fine-grained-cache", + action="store_true", + help="Use the cache in fine-grained incremental mode (this flag only available for dmypy)", + ) incremental_group.add_argument( "--fixed-format-cache", action="store_true", @@ -1203,13 +1209,6 @@ def add_invertible_flag( inverse="--interactive", ) - if server_options: - misc_group.add_argument( - "--use-fine-grained-cache", - action="store_true", - help="Use the cache in fine-grained incremental mode", - ) - # hidden options parser.add_argument( "--stats", action="store_true", dest="dump_type_stats", help=argparse.SUPPRESS