Skip to content

Instantly share code, notes, and snippets.

@Isaac3N
Last active April 29, 2022 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Isaac3N/fd5319232e0704d2ecc6a217a74b1619 to your computer and use it in GitHub Desktop.
Save Isaac3N/fd5319232e0704d2ecc6a217a74b1619 to your computer and use it in GitHub Desktop.
from dataclasses import dataclass
@dataclass
class Product:
title: str
description: str
price: int
ratings: int
published: bool
id: int
@Isaac3N
Copy link
Author

Isaac3N commented Apr 29, 2022

This is for the introduction to pydantic article

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment