From cfdd9d4f7f6b981b37ab34276af8b4c9d9821550 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 19 Dec 2021 15:20:22 +0000 Subject: [PATCH] bpo-46104: Fix example broken by GH-30148 This PR addresses a review by @gvanrossum, which can be found in the discussion in GH-30179. --- Doc/library/typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index ec1b8d1a5ebcc9..727941b57b547b 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -432,7 +432,7 @@ value of type :data:`Any` and assign it to any variable:: a = [] # OK a = 2 # OK - s = '' # Inferred type of 's' is str + s: str = '' s = a # OK def foo(item: Any) -> int: