From adcb8fa1385723ff927bc88cc7ab72d301234701 Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Mon, 3 Nov 2025 04:50:20 -0800 Subject: [PATCH] Change the InlineTypedDict example This way it will be clear that there is no necessary connection between the name of the field and its type. --- docs/source/command_line.rst | 4 ++-- docs/source/typed_dict.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/command_line.rst b/docs/source/command_line.rst index 79dd68a84b28..d6b70c4976dc 100644 --- a/docs/source/command_line.rst +++ b/docs/source/command_line.rst @@ -1211,8 +1211,8 @@ List of currently incomplete/experimental features: .. code-block:: python - def test_values() -> {"int": int, "str": str}: - return {"int": 42, "str": "test"} + def test_values() -> {"width": int, "description": str}: + return {"width": 42, "description": "test"} Miscellaneous diff --git a/docs/source/typed_dict.rst b/docs/source/typed_dict.rst index bbb10a12abe8..d42b434b05b2 100644 --- a/docs/source/typed_dict.rst +++ b/docs/source/typed_dict.rst @@ -303,8 +303,8 @@ to use inline TypedDict syntax. For example: .. code-block:: python - def test_values() -> {"int": int, "str": str}: - return {"int": 42, "str": "test"} + def test_values() -> {"width": int, "description": str}: + return {"width": 42, "description": "test"} class Response(TypedDict): status: int