-
-
Save Isaac3N/fd5319232e0704d2ecc6a217a74b1619 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
@dataclass | |
class Product: | |
title: str | |
description: str | |
price: int | |
ratings: int | |
published: bool | |
id: int |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is for the introduction to pydantic article