Skip to content

Commit 8412d1d

Browse files
Refactor/nit main.py: rename the variable other_group to misc_group (#19832)
This better reflects its external name, "Miscellaneous". The current CI suffices to check that this code is correct.
1 parent 6cc96f4 commit 8412d1d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mypy/main.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,22 +1163,22 @@ def add_invertible_flag(
11631163
"--skip-c-gen", dest="mypyc_skip_c_generation", action="store_true", help=argparse.SUPPRESS
11641164
)
11651165

1166-
other_group = parser.add_argument_group(title="Miscellaneous")
1167-
other_group.add_argument("--quickstart-file", help=argparse.SUPPRESS)
1168-
other_group.add_argument("--junit-xml", help="Write junit.xml to the given file")
1166+
misc_group = parser.add_argument_group(title="Miscellaneous")
1167+
misc_group.add_argument("--quickstart-file", help=argparse.SUPPRESS)
1168+
misc_group.add_argument("--junit-xml", help="Write junit.xml to the given file")
11691169
imports_group.add_argument(
11701170
"--junit-format",
11711171
choices=["global", "per_file"],
11721172
default="global",
11731173
help="If --junit-xml is set, specifies format. global: single test with all errors; per_file: one test entry per file with failures",
11741174
)
1175-
other_group.add_argument(
1175+
misc_group.add_argument(
11761176
"--find-occurrences",
11771177
metavar="CLASS.MEMBER",
11781178
dest="special-opts:find_occurrences",
11791179
help="Print out all usages of a class member (experimental)",
11801180
)
1181-
other_group.add_argument(
1181+
misc_group.add_argument(
11821182
"--scripts-are-modules",
11831183
action="store_true",
11841184
help="Script x becomes module x instead of __main__",
@@ -1189,7 +1189,7 @@ def add_invertible_flag(
11891189
default=False,
11901190
strict_flag=False,
11911191
help="Install detected missing library stub packages using pip",
1192-
group=other_group,
1192+
group=misc_group,
11931193
)
11941194
add_invertible_flag(
11951195
"--non-interactive",
@@ -1199,12 +1199,12 @@ def add_invertible_flag(
11991199
"Install stubs without asking for confirmation and hide "
12001200
+ "errors, with --install-types"
12011201
),
1202-
group=other_group,
1202+
group=misc_group,
12031203
inverse="--interactive",
12041204
)
12051205

12061206
if server_options:
1207-
other_group.add_argument(
1207+
misc_group.add_argument(
12081208
"--use-fine-grained-cache",
12091209
action="store_true",
12101210
help="Use the cache in fine-grained incremental mode",

0 commit comments

Comments
 (0)