Skip to content

Commit 7359704

Browse files
author
David Froger
committed
Document --enable-incomplete-feature possible values in "mypy --help"
Fixes #14452
1 parent 0567da9 commit 7359704

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/source/command_line.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ format into the specified directory.
995995
Enabling incomplete/experimental features
996996
*****************************************
997997

998-
.. option:: --enable-incomplete-feature FEATURE
998+
.. option:: --enable-incomplete-feature {PreciseTupleTypes}
999999

10001000
Some features may require several mypy releases to implement, for example
10011001
due to their complexity, potential for backwards incompatibility, or

mypy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ def add_invertible_flag(
10101010
parser.add_argument(
10111011
"--enable-incomplete-feature",
10121012
action="append",
1013-
metavar="FEATURE",
1013+
metavar="{" + ",".join(sorted(INCOMPLETE_FEATURES)) + "}",
10141014
help="Enable support of incomplete/experimental features for early preview",
10151015
)
10161016
internals_group.add_argument(

0 commit comments

Comments
 (0)