Skip to content

Instantly share code, notes, and snippets.

@kennethleungty
Created December 16, 2025 16:00
Show Gist options
  • Select an option

  • Save kennethleungty/647b7ec9ff74c60db5a65dc628c4ed23 to your computer and use it in GitHub Desktop.

Select an option

Save kennethleungty/647b7ec9ff74c60db5a65dc628c4ed23 to your computer and use it in GitHub Desktop.
class Todo(TypedDict):
"""A single todo item with content and status."""
content: str
"""The content/description of the todo item."""
status: Literal["pending", "in_progress", "completed"]
"""The current status of the todo item."""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment