From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 20 Dec 2021 06:02:04 +0000 (-0800) Subject: [3.9] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30210) X-Git-Tag: v3.9.10~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e4564d14ae0fc97cfea4de9e271468d4c28a6fe;p=thirdparty%2FPython%2Fcpython.git [3.9] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30210) See discussion in GH-30179. (cherry picked from commit 7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c) Co-authored-by: Alex Waygood Automerge-Triggered-By: GH:Fidget-Spinner --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 34aaa1fac307..2da544884db1 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: