mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
Fix "The Matrix" movie release year in typing.rst
(#123965)
This commit is contained in:
parent
eb169f4027
commit
3bd942f106
@ -1316,7 +1316,7 @@ These can be used as types in annotations. They all support subscription using
|
||||
year: int
|
||||
|
||||
def mutate_movie(m: Movie) -> None:
|
||||
m["year"] = 1992 # allowed
|
||||
m["year"] = 1999 # allowed
|
||||
m["title"] = "The Matrix" # typechecker error
|
||||
|
||||
There is no runtime checking for this property.
|
||||
|
Loading…
Reference in New Issue
Block a user