pantry/projects/python.org/typing_extensions/test.py

7 lines
154 B
Python
Raw Normal View History

import typing_extensions
class Movie(typing_extensions.TypedDict):
title: str
year: typing_extensions.NotRequired[int]
m = Movie(title="Grease")