Skip to content

Commit

Permalink
Fix "The Matrix" movie release year in typing.rst (python#123965)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Sep 11, 2024
1 parent eb169f4 commit 3bd942f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3bd942f

Please sign in to comment.