Skip to content

fix: 修正render問題 #708

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

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions library/unittest.mock.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-20 00:03+0000\n"
"PO-Revision-Date: 2023-09-09 23:07+0800\n"
"PO-Revision-Date: 2023-11-23 21:46+0800\n"
"Last-Translator: Adrian Liaw <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
Expand All @@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.4\n"
"X-Generator: Poedit 3.4.1\n"

#: ../../library/unittest.mock.rst:3
msgid ":mod:`unittest.mock` --- mock object library"
Expand Down Expand Up @@ -469,9 +469,9 @@ msgid ""
"mocks and the return value mock (if any) are reset as well."
msgstr ""
"這在你想要進行一系列重複使用同一物件的斷言時非常有用。請注意,預設情況下,:"
"meth:`reset_mock` *不會*\\ 清除回傳值、:attr:`side_effect` 或使用普通賦值設定的"
"任何子屬性。如果你想要重置 *return_value* 或 :attr:`side_effect`,則將相應的"
"參數設置為 ``True``。Child mock 和回傳值 mock(如果有的話)也會被重置。"
"meth:`reset_mock` *不會*\\ 清除回傳值、:attr:`side_effect` 或使用普通賦值設定"
"的任何子屬性。如果你想要重置 *return_value* 或 :attr:`side_effect`,則將相應"
"的參數設置為 ``True``。Child mock 和回傳值 mock(如果有的話)也會被重置。"

#: ../../library/unittest.mock.rst:420
msgid "*return_value*, and :attr:`side_effect` are keyword-only arguments."
Expand Down Expand Up @@ -641,9 +641,9 @@ msgid ""
"second member, which can also be accessed through the ``kwargs`` property, "
"is any keyword arguments (or an empty dictionary)."
msgstr ""
"這會是 ``None``(如果 mock 尚未被呼叫),或是 mock 上次被呼叫時使用的引數。這"
"將以元組的形式呈現:第一個成員 (member),其可以通過 ``args`` 屬性訪問,"
"mock 被呼叫時傳遞的所有有序引數(或一個空元組)。第二個成員,其可以通過 "
"這會是 ``None``\\ (如果 mock 尚未被呼叫),或是 mock 上次被呼叫時使用的引"
"數。這將以元組的形式呈現:第一個成員 (member),其可以通過 ``args`` 屬性訪問,"
"mock 被呼叫時傳遞的所有有序引數(或一個空元組)。第二個成員,其可以通過 "
"``kwargs`` 屬性訪問,是所有關鍵字引數(或一個空字典)。"

#: ../../library/unittest.mock.rst:646
Expand Down Expand Up @@ -689,7 +689,7 @@ msgid ""
"and attributes, and *their* methods and attributes:"
msgstr ""
"除了追蹤對自身的呼叫之外,mock 還會追蹤對方法和屬性的呼降,以及*它們(這些方"
"法和屬性)*的方法和屬性:"
"法和屬性)*\\ 的方法和屬性:"

#: ../../library/unittest.mock.rst:692
msgid ""
Expand Down Expand Up @@ -797,9 +797,9 @@ msgid ""
"mock. Therefore, it can match the actual call's arguments regardless of "
"whether they were passed positionally or by name::"
msgstr ""
"在匹配對 mock 的呼叫時,使用 *spec*(或 *spec_set*)建立的可呼叫 mock 將會內"
"省規格物件的簽名 (signature)。因此,它可以匹配實際呼叫的引數,無論它們是按位"
"置傳遞還是按名稱傳遞:\n"
"在匹配對 mock 的呼叫時,使用 *spec*\\ (或 *spec_set*\\ )建立的可呼叫 mock "
"將會內省規格物件的簽名 (signature)。因此,它可以匹配實際呼叫的引數,無論它們"
"是按位置傳遞還是按名稱傳遞:\n"
"\n"
"::"

Expand Down