blob: 9a2c4a66935884ec280a3a2989b26b3bf10f8215 [file] [log] [blame]
#!/usr/bin/python3
from typing import TypedDict
UserChanges = TypedDict(
"User", {"name": str, "email": str, "changes": list[int]}
)
def changes_factory():
return {"name": None, "email": None, "changes": list()}
UserComments = TypedDict("User", {"name": str, "email": str, "comments": int})
def comments_factory():
return {"name": None, "email": None, "comments": 0}