Created
November 1, 2020 16:56
-
-
Save MartinThoma/fef960fe84b1dfd5473c3969e27200f2 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, Field | |
class Person(BaseModel): | |
friends : List[int] = Field(default_factory=list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment