Skip to content

Commit

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


Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

Automerge-Triggered-By: GH:Fidget-Spinner
  • Loading branch information
miss-islington committed Dec 20, 2021
1 parent d7537ac commit 0c0bd78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/typing.rst
Expand Up @@ -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:
Expand Down

0 comments on commit 0c0bd78

Please sign in to comment.