Skip to content

Commit

Permalink
bpo-46104: Fix example broken by pythonGH-30148 (pythonGH-30203)
Browse files Browse the repository at this point in the history
See discussion in pythonGH-30179.
(cherry picked from commit 7c5c3f7)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
AlexWaygood authored and miss-islington committed Dec 20, 2021
1 parent 8bfb11a commit 0b7f9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/typing.rst
Expand Up @@ -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:
Expand Down

0 comments on commit 0b7f9ac

Please sign in to comment.