random code snippets
def diff_yyyymmdd(dt1: str, dt2: str) -> int:
type annotations
json
from typing import Dict, Any Dict[str, Any]
Many other ways are possible.
See
https://stackoverflow.com/questions/51291722/define-a-jsonable-type-using-mypy-pep-526
for full details.