Skip to content

Commit

Permalink
[3.13] Fix "The Matrix" movie release year in typing.rst (GH-123965) (
Browse files Browse the repository at this point in the history
#123966)

Fix "The Matrix" movie release year in `typing.rst` (GH-123965)
(cherry picked from commit 3bd942f)

Co-authored-by: sobolevn <[email protected]>
  • Loading branch information
miss-islington and sobolevn authored Sep 23, 2024
1 parent 86f30dd commit bbec2ea
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 bbec2ea

Please sign in to comment.