Skip to content

Commit b64e765

Browse files
Update main.py: instead of moving experimental group up, move it down, pt 2
1 parent c09118b commit b64e765

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

mypy/main.py

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,25 +1196,6 @@ def add_invertible_flag(
11961196
internals_group.add_argument(
11971197
"--disable-expression-cache", action="store_true", help=argparse.SUPPRESS
11981198
)
1199-
experimental_group = parser.add_argument_group(
1200-
title="Experimental options",
1201-
description="Enable features that work well enough to be useful,"
1202-
+ " but perhaps not as well as you might wish."
1203-
+ " These features may be enabled by default in the future,"
1204-
+ " or perhaps moved to another section.",
1205-
)
1206-
experimental_group.add_argument(
1207-
"--enable-incomplete-feature",
1208-
action="append",
1209-
metavar="{" + ",".join(sorted(INCOMPLETE_FEATURES)) + "}",
1210-
help="Enable support of incomplete/experimental features for early preview",
1211-
)
1212-
experimental_group.add_argument(
1213-
"--find-occurrences",
1214-
metavar="CLASS.MEMBER",
1215-
dest="special-opts:find_occurrences",
1216-
help="Print out all usages of a class member",
1217-
)
12181199
internals_group.add_argument(
12191200
"--custom-typeshed-dir", metavar="DIR", help="Use the custom typeshed in DIR"
12201201
)
@@ -1267,6 +1248,26 @@ def add_invertible_flag(
12671248
"--skip-c-gen", dest="mypyc_skip_c_generation", action="store_true", help=argparse.SUPPRESS
12681249
)
12691250

1251+
experimental_group = parser.add_argument_group(
1252+
title="Experimental options",
1253+
description="Enable features that work well enough to be useful,"
1254+
+ " but perhaps not as well as you might wish."
1255+
+ " These features may be enabled by default in the future,"
1256+
+ " or perhaps moved to another section.",
1257+
)
1258+
experimental_group.add_argument(
1259+
"--enable-incomplete-feature",
1260+
action="append",
1261+
metavar="{" + ",".join(sorted(INCOMPLETE_FEATURES)) + "}",
1262+
help="Enable support of incomplete/experimental features for early preview",
1263+
)
1264+
experimental_group.add_argument(
1265+
"--find-occurrences",
1266+
metavar="CLASS.MEMBER",
1267+
dest="special-opts:find_occurrences",
1268+
help="Print out all usages of a class member",
1269+
)
1270+
12701271
misc_group = parser.add_argument_group(title="Miscellaneous")
12711272
misc_group.add_argument("--quickstart-file", help=argparse.SUPPRESS)
12721273
misc_group.add_argument("--junit-xml", help="Write junit.xml to the given file")

0 commit comments

Comments
 (0)