Skip to content

Commit 7c5c3f7

Browse files
authored
bpo-46104: Fix example broken by GH-30148 (GH-30203)
See discussion in GH-30179.
1 parent 29ea68b commit 7c5c3f7

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
@@ -432,7 +432,7 @@ value of type :data:`Any` and assign it to any variable::
432432
a = [] # OK
433433
a = 2 # OK
434434

435-
s = '' # Inferred type of 's' is str
435+
s: str = ''
436436
s = a # OK
437437

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

0 commit comments

Comments
 (0)