summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2021-12-20 04:48:35 (GMT)
committerGitHub <noreply@github.com>2021-12-20 04:48:35 (GMT)
commit7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c (patch)
tree9ef31c10cd6de9e60a8530be16f0a89f48be8a1d /Doc
parent29ea68bd1dcf30842c2ed908a6d815bc1d90f484 (diff)
downloadcpython-7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c.zip
cpython-7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c.tar.gz
cpython-7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c.tar.bz2
bpo-46104: Fix example broken by GH-30148 (GH-30203)
See discussion in GH-30179.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/typing.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index ec1b8d1..727941b 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: