Skip to content

Instantly share code, notes, and snippets.

@zehpatricio
Created March 25, 2022 20:29
Show Gist options
  • Save zehpatricio/812577bc6c59fd20aeb38839599db2d7 to your computer and use it in GitHub Desktop.
Save zehpatricio/812577bc6c59fd20aeb38839599db2d7 to your computer and use it in GitHub Desktop.
from pydantic import BaseModel
from typing import Optional
from datetime import datetime
class Location(BaseModel):
id: Optional[int]
device_id: int
lat: float
long: float
date: datetime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment