Skip to content

docs: reorder incomplete features alphabetically in command_line.rst#21089

Open
sedat4ras wants to merge 1 commit intopython:masterfrom
sedat4ras:docs/reorder-incomplete-features
Open

docs: reorder incomplete features alphabetically in command_line.rst#21089
sedat4ras wants to merge 1 commit intopython:masterfrom
sedat4ras:docs/reorder-incomplete-features

Conversation

@sedat4ras
Copy link

Fixes #20171

The --enable-incomplete-feature flag uses sorted(INCOMPLETE_FEATURES) in mypy/main.py (line 1117), so --help displays features in alphabetical order:

{InlineTypedDict,PreciseTupleTypes,TypeForm}

However, the documentation in command_line.rst listed them in a different order (PreciseTupleTypes first, then InlineTypedDict), which was inconsistent with both the --help output and alphabetical ordering.

This PR reorders both the option metavar and the feature descriptions in the docs to match the alphabetical order shown by --help.

No tests needed for this documentation-only change.

….rst

The --enable-incomplete-feature flag uses sorted(INCOMPLETE_FEATURES)
in mypy/main.py, so --help displays features alphabetically:
InlineTypedDict, PreciseTupleTypes, TypeForm.

The documentation listed them in a different order (PreciseTupleTypes,
InlineTypedDict, TypeForm). Reorder the option metavar and the feature
descriptions to match the alphabetical order shown by --help.

Fixes python#20171
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant