mirror of https://github.com/tiangolo/fastapi.git
✏️ Fix typo in `docs/en/docs/tutorial/extra-models.md` (#11329)
This commit is contained in:
parent
96b14d9f33
commit
7b1da59b28
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue