Skip to content

Commit

Permalink
Document --enable-incomplete-feature possible values in "mypy --help"
Browse files Browse the repository at this point in the history
  • Loading branch information
David Froger committed Dec 13, 2023
1 parent 0567da9 commit 7359704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/command_line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ format into the specified directory.
Enabling incomplete/experimental features
*****************************************

.. option:: --enable-incomplete-feature FEATURE
.. option:: --enable-incomplete-feature {PreciseTupleTypes}

Some features may require several mypy releases to implement, for example
due to their complexity, potential for backwards incompatibility, or
Expand Down
2 changes: 1 addition & 1 deletion mypy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ def add_invertible_flag(
parser.add_argument(
"--enable-incomplete-feature",
action="append",
metavar="FEATURE",
metavar="{" + ",".join(sorted(INCOMPLETE_FEATURES)) + "}",
help="Enable support of incomplete/experimental features for early preview",
)
internals_group.add_argument(
Expand Down

0 comments on commit 7359704

Please sign in to comment.