- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Buterin (0.16 sec)
-
docs/en/docs/tutorial/extra-models.md
### About `**user_in.dict()` #### Pydantic's `.dict()` `user_in` is a Pydantic model of class `UserIn`. Pydantic models have a `.dict()` method that returns a `dict` with the model's data. So, if we create a Pydantic object `user_in` like: ```Python user_in = UserIn(username="john", password="secret", email="******@****.***") ``` and then we call: ```Python
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (1) -
docs/en/docs/tutorial/response-model.md
`BaseUser` has the base fields. Then `UserIn` inherits from `BaseUser` and adds the `password` field, so, it will include all the fields from both models. We annotate the function return type as `BaseUser`, but we are actually returning a `UserIn` instance.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
docs/em/docs/tutorial/extra-models.md
``` ### ๐ `**user_in.dict()` #### Pydantic `.dict()` `user_in` Pydantic ๐ท ๐ `UserIn`. Pydantic ๐ท โ๏ธ `.dict()` ๐ฉโ๐ฌ ๐ ๐จ `dict` โฎ๏ธ ๐ท ๐ฝ. , ๐ฅ ๐ฅ โ Pydantic ๐ `user_in` ๐: ```Python user_in = UserIn(username="john", password="secret", email="******@****.***") ``` & โคด๏ธ ๐ฅ ๐ค: ```Python user_dict = user_in.dict() ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.8K bytes - Viewed (0)