- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for model_copy (0.04 sec)
-
docs/uk/docs/tutorial/body-updates.md
### Використання параметра `update` у Pydantic Тепер Ви можете створити копію наявної моделі за допомогою `.model_copy()`, і передати параметр `update` з `dict` , який містить дані для оновлення. /// info | Інформація У Pydantic v1 метод називався `.copy()`, він був застарілий (але все ще підтримується) у Pydantic v2, і був перейменований у `.model_copy()`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Jun 30 06:00:04 UTC 2025 - 7.7K bytes - Viewed (0) -
docs/en/docs/tutorial/body-updates.md
Now, you can create a copy of the existing model using `.model_copy()`, and pass the `update` parameter with a `dict` containing the data to update. /// info In Pydantic v1 the method was called `.copy()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_copy()`. The examples here use `.copy()` for compatibility with Pydantic v1, but you should use `.model_copy()` instead if you can use Pydantic v2. ///
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4.7K bytes - Viewed (0)