diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-12-20 06:01:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 06:01:51 (GMT) |
commit | 0c0bd78ccf8e1eb1d8ecfce423daf2a2f8ca6d3b (patch) | |
tree | 1401efeb127d2d00e91ba47fd3c25e162f11f902 /Doc | |
parent | d7537ac8e3a3ef15d2c5f3fe90e998618b6a97b9 (diff) | |
download | cpython-0c0bd78ccf8e1eb1d8ecfce423daf2a2f8ca6d3b.zip cpython-0c0bd78ccf8e1eb1d8ecfce423daf2a2f8ca6d3b.tar.gz cpython-0c0bd78ccf8e1eb1d8ecfce423daf2a2f8ca6d3b.tar.bz2 |
[3.10] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30209)
See discussion in GH-30179.
(cherry picked from commit 7c5c3f7254d78babcaf7a2ec187fd6ec53b8403c)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:Fidget-Spinner
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/typing.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index c154364..3adb495 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: |