Final from typing import Final _PI: Final[float] = 3.14 Hashable from typing import Any, Dict from collections.abc import Hashable my_dict: Dict[Hashable, Any] TypedDict # Python >= 3.11 from typing import Optional, NotRequired, TypedDict # Pyth...
I post a ton of #TIL posts at work.
I figured I'd post it here too so that I can reference it later