Skip to content

Commit

Permalink
Misc. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Oct 29, 2024
1 parent 76dc942 commit f87336c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions peps/pep-0764.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ It is possible to define a nested inlined dictionary::

Movie = TypedDict[{'name': str, 'production': TypedDict[{'location': str}]}]

# Note that the following is invalid as per the updated `type_expression` production:
# Note that the following is invalid as per the updated `type_expression` grammar:
Movie = TypedDict[{'name': str, 'production': {'location': str}}]

Although it is not possible to specify any class arguments such as ``total``,
Any :external+typing:term:`type qualifier` can be used for individual fields::
any :external+typing:term:`type qualifier` can be used for individual fields::

Movie = TypedDict[{'name': NotRequired[str], 'year': ReadOnly[int]}]

Expand Down

0 comments on commit f87336c

Please sign in to comment.