Skip to content

Commit 8e4564d

Browse files
[3.9] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30210)
See discussion in GH-30179. (cherry picked from commit 7c5c3f7) Co-authored-by: Alex Waygood <[email protected]> Automerge-Triggered-By: GH:Fidget-Spinner
1 parent 8bfb11a commit 8e4564d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/typing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ value of type :data:`Any` and assign it to any variable::
362362
a = [] # OK
363363
a = 2 # OK
364364

365-
s = '' # Inferred type of 's' is str
365+
s: str = ''
366366
s = a # OK
367367

368368
def foo(item: Any) -> int:

0 commit comments

Comments
 (0)