mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.10] bpo-46104: Fix example broken by GH-30148 (GH-30203) (GH-30209)
See discussion in GH-30179.
(cherry picked from commit 7c5c3f7254)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:Fidget-Spinner
This commit is contained in:
parent
d7537ac8e3
commit
0c0bd78ccf
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 = 2 # OK
|
||||
|
||||
s = '' # Inferred type of 's' is str
|
||||
s: str = ''
|
||||
s = a # OK
|
||||
|
||||
def foo(item: Any) -> int:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue