Periksa apakah suatu tipe adalah TypedDict.
typing.is_typeddict(tp)
class Film(TypedDict):
title: str
year: int
assert is_typeddict(Film)
assert not is_typeddict(list | str)
TypedDict is a factory for creating typed dicts,
not a typed dict itself
assert not is_typeddict(TypedDict)