diff --git a/docs/source/command_line.rst b/docs/source/command_line.rst index 5efec6855593..0a7e065b304e 100644 --- a/docs/source/command_line.rst +++ b/docs/source/command_line.rst @@ -1159,7 +1159,7 @@ format into the specified directory. Enabling incomplete/experimental features ***************************************** -.. option:: --enable-incomplete-feature {PreciseTupleTypes,InlineTypedDict,TypeForm} +.. option:: --enable-incomplete-feature {InlineTypedDict,PreciseTupleTypes,TypeForm} Some features may require several mypy releases to implement, for example due to their complexity, potential for backwards incompatibility, or @@ -1171,6 +1171,14 @@ Enabling incomplete/experimental features List of currently incomplete/experimental features: +* ``InlineTypedDict``: this feature enables non-standard syntax for inline + :ref:`TypedDicts `, for example: + + .. code-block:: python + + def test_values() -> {"width": int, "description": str}: + return {"width": 42, "description": "test"} + * ``PreciseTupleTypes``: this feature will infer more precise tuple types in various scenarios. Before variadic types were added to the Python type system by :pep:`646`, it was impossible to express a type like "a tuple with @@ -1206,14 +1214,6 @@ List of currently incomplete/experimental features: # Without PreciseTupleTypes: tuple[int, ...] # With PreciseTupleTypes: tuple[()] | tuple[int] | tuple[int, int] -* ``InlineTypedDict``: this feature enables non-standard syntax for inline - :ref:`TypedDicts `, for example: - - .. code-block:: python - - def test_values() -> {"width": int, "description": str}: - return {"width": 42, "description": "test"} - * ``TypeForm``: this feature enables ``TypeForm``, as described in `PEP 747 – Annotating Type Forms _`.