mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00: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 <mail@sobolevn.me>
This commit is contained in:
parent
86f30dd539
commit
bbec2ea88f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue