Skip to content

Instantly share code, notes, and snippets.

@cassioeskelsen
Created November 14, 2021 20:03
Show Gist options
  • Save cassioeskelsen/dadb1d021644ec1c5eb32c906e57ff37 to your computer and use it in GitHub Desktop.
Save cassioeskelsen/dadb1d021644ec1c5eb32c906e57ff37 to your computer and use it in GitHub Desktop.
from pydantic.dataclasses import dataclass
@dataclass
class Customer:
id: int
name: str
address: str
city: str
state: str
zip_code: int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment