Skip to content

Instantly share code, notes, and snippets.

@Isaac3N
Last active Apr 29, 2022
Embed
What would you like to do?
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