Fix "The Matrix" movie release year in typing.rst (#123965)

This commit is contained in:
sobolevn 2024-09-11 21:25:23 +03:00 committed by GitHub
parent eb169f4027
commit 3bd942f106
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.