mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-23 02:15:26 -04:00
✏️ Fix typo in docs/en/docs/tutorial/extra-models.md (#11329)
This commit is contained in:
1 parent
96b14d9f33
commit
7b1da59b28
1 file changed
+1
-1
@@ -120,7 +120,7 @@ would be equivalent to:
|
||||
UserInDB(**user_in.dict())
|
||||
```
|
||||
|
||||
...because `user_in.dict()` is a `dict`, and then we make Python "unwrap" it by passing it to `UserInDB` prepended with `**`.
|
||||
...because `user_in.dict()` is a `dict`, and then we make Python "unwrap" it by passing it to `UserInDB` prefixed with `**`.
|
||||
|
||||
So, we get a Pydantic model from the data in another Pydantic model.
|
||||
|
||||
|
||||
Reference in new issue
Block a user