mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
bpo-46104: Fix example broken by GH-30148 (GH-30203)
See discussion in GH-30179.
This commit is contained in:
parent
29ea68bd1d
commit
7c5c3f7254
1 changed files with 1 additions and 1 deletions
|
@ -432,7 +432,7 @@ value of type :data:`Any` and assign it to any variable::
|
||||||
a = [] # OK
|
a = [] # OK
|
||||||
a = 2 # OK
|
a = 2 # OK
|
||||||
|
|
||||||
s = '' # Inferred type of 's' is str
|
s: str = ''
|
||||||
s = a # OK
|
s = a # OK
|
||||||
|
|
||||||
def foo(item: Any) -> int:
|
def foo(item: Any) -> int:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue