joke_types.py 244 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 from typing import TypedDict, Literal JokeType = Literal["general"] | Literal["knock-knock"] | Literal["programming"] | Literal["dad"] | Literal["any"] class Joke(TypedDict): type: JokeType setup: str punchline: str id: int