Skip to content

Instantly share code, notes, and snippets.

@necaris
Last active September 17, 2019 14:02
Show Gist options
  • Save necaris/5e5f1406c8e04a4edb59e6d1d994d462 to your computer and use it in GitHub Desktop.
Save necaris/5e5f1406c8e04a4edb59e6d1d994d462 to your computer and use it in GitHub Desktop.
from datetime import datetime
from pydantic import BaseModel
class Flight(BaseModel):
origin: str
destination: str
departure: datetime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment