From 0b7f9ac130728c6b392c5e3a0059ee52cc8c73e7 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 20 Dec 2021 04:48:35 +0000 Subject: [PATCH] bpo-46104: Fix example broken by GH-30148 (GH-30203) See discussion in GH-30179. (cherry picked from commit 7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c) Co-authored-by: Alex Waygood --- 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 34aaa1fac3077b..2da544884db1da 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -362,7 +362,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: