Created
August 14, 2022 13:47
-
-
Save CrimsonScythe/7501a1901b4854d3d1b60d8200f1bbe4 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 pydantic import BaseModel | |
class Book(BaseModel): | |
name: str | |
author: str | |
class Config: | |
orm_mode = True | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment