diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 34aaa1fac3077b..2da544884db1da 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -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: