-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌐 Add Chinese translation for Tutorial - Body - Updates #3237
Conversation
|
||
### 使用 Pydantic 的 `update` 参数 | ||
|
||
接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的`dict`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的`dict`。 | |
现在,你可以使用 `.copy()` 为已有的模型创建一个副本,并且传入 `update` 参数,参数值为包含将要更新数据的`dict`。 |
Codecov Report
@@ Coverage Diff @@
## master #3237 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 226 248 +22
Lines 6783 7712 +929
==========================================
+ Hits 6783 7712 +929
Continue to review full report at Codecov.
|
📝 Docs preview for commit 74d2cd7 at: https://60a23a641e75cb92023071a0--fastapi.netlify.app |
* 更新了 body-updates 中的几处文字描述,添加了 dict 与中文之间的空格
把 MDN 的网址改为中文
6438880
to
0972c8d
Compare
Co-authored-by: Xie Wei <ampedee@gmail.com>
Co-authored-by: Xie Wei <ampedee@gmail.com>
Co-authored-by: Xie Wei <ampedee@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
📝 Docs preview for commit c6a6e6b at: https://60df2103d44d37fbbaf57ac9--fastapi.netlify.app |
Great, thank you @jaystone776 ! 🎉 🍰 And thanks a lot for the reviews @voidf, @waynerv, and @Laineyzhang55 🚀 🙇 |
as title