From e19999eecdd73a206b09ee357a20ee08d6f6e853 Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Thu, 18 Sep 2025 00:44:05 +0700 Subject: [PATCH 1/2] swap the heading --- docs/source/command_line.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/command_line.rst b/docs/source/command_line.rst index 79dd68a84b28..5874337176da 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} +.. option:: --enable-incomplete-feature {InlineTypedDict,PreciseTupleTypes} Some features may require several mypy releases to implement, for example due to their complexity, potential for backwards incompatibility, or From 38e9e30c4e54dd957444f818d2ca95f0d69f3044 Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Thu, 18 Sep 2025 00:54:19 +0700 Subject: [PATCH 2/2] Update command_line.rst: reorder the bullet points --- docs/source/command_line.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/source/command_line.rst b/docs/source/command_line.rst index 5874337176da..57885aec3413 100644 --- a/docs/source/command_line.rst +++ b/docs/source/command_line.rst @@ -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() -> {"int": int, "str": str}: + return {"int": 42, "str": "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() -> {"int": int, "str": str}: - return {"int": 42, "str": "test"} - Miscellaneous *************