1#!/usr/bin/python3 2 3from typing import TypedDict 4 5UserChanges = TypedDict( 6 "User", {"name": str, "email": str, "changes": list[int]} 7) 8 9 10def changes_factory(): 11 return {"name": None, "email": None, "changes": list()} 12 13 14UserComments = TypedDict("User", {"name": str, "email": str, "comments": int}) 15 16 17def comments_factory(): 18 return {"name": None, "email": None, "comments": 0} 19