From: Alex Waygood Date: Mon, 20 Dec 2021 04:48:35 +0000 (+0000) Subject: bpo-46104: Fix example broken by GH-30148 (GH-30203) X-Git-Tag: v3.11.0a4~155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c;p=thirdparty%2FPython%2Fcpython.git bpo-46104: Fix example broken by GH-30148 (GH-30203) See discussion in GH-30179. --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index ec1b8d1a5ebc..727941b57b54 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: