Rahul Salgare
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
docs_src/python_types/tutorial011.py
-
docs_src/python_types/tutorial011_py310.py
-
docs_src/python_types/tutorial011_py39.py
|
|
@ -6,7 +6,7 @@ from pydantic import BaseModel |
|
|
|
|
|
|
|
class User(BaseModel): |
|
|
|
id: int |
|
|
|
name = "John Doe" |
|
|
|
name: str = "John Doe" |
|
|
|
signup_ts: Union[datetime, None] = None |
|
|
|
friends: List[int] = [] |
|
|
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ from pydantic import BaseModel |
|
|
|
|
|
|
|
class User(BaseModel): |
|
|
|
id: int |
|
|
|
name = "John Doe" |
|
|
|
name: str = "John Doe" |
|
|
|
signup_ts: datetime | None = None |
|
|
|
friends: list[int] = [] |
|
|
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ from pydantic import BaseModel |
|
|
|
|
|
|
|
class User(BaseModel): |
|
|
|
id: int |
|
|
|
name = "John Doe" |
|
|
|
name: str = "John Doe" |
|
|
|
signup_ts: Union[datetime, None] = None |
|
|
|
friends: list[int] = [] |
|
|
|
|
|
|
|