mirror of
https://github.com/python/cpython.git
synced 2026-07-30 13:46:45 -04:00
[3.13] Fix "The Matrix" movie release year in typing.rst (GH-123965) (#123966)
Fix "The Matrix" movie release year in `typing.rst` (GH-123965)
(cherry picked from commit 3bd942f106)
Co-authored-by: sobolevn <[email protected]>
This commit is contained in:
co-authored by
sobolevn
parent
86f30dd539
commit
bbec2ea88f
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user