Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a551727

Browse files
[po] auto sync
1 parent 3304ab6 commit a551727

3 files changed

Lines changed: 6850 additions & 6845 deletions

File tree

library/dataclasses.po

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.9\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2021-04-27 06:12+0000\n"
17+
"POT-Creation-Date: 2021-05-07 06:17+0000\n"
1818
"PO-Revision-Date: 2018-06-29 21:06+0000\n"
1919
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
2020
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -45,12 +45,12 @@ msgstr ""
4545
#: ../../library/dataclasses.rst:19
4646
msgid ""
4747
"The member variables to use in these generated methods are defined using "
48-
":pep:`526` type annotations. For example this code::"
49-
msgstr "在这些生成的方法中使用的成员变量使用 :pep:`526` 类型注释定义。例如这段代码::"
48+
":pep:`526` type annotations. For example, this code::"
49+
msgstr ""
5050

5151
#: ../../library/dataclasses.rst:34
52-
msgid "Will add, among other things, a :meth:`__init__` that looks like::"
53-
msgstr "除其他事情外,将添加 :meth:`__init__` ,其看起来像::"
52+
msgid "will add, among other things, a :meth:`__init__` that looks like::"
53+
msgstr ""
5454

5555
#: ../../library/dataclasses.rst:41
5656
msgid ""
@@ -71,13 +71,10 @@ msgstr "这个函数是 :term:`decorator` ,用于将生成的 :term:`special m
7171
#: ../../library/dataclasses.rst:54
7272
msgid ""
7373
"The :func:`dataclass` decorator examines the class to find ``field``\\s. A "
74-
"``field`` is defined as class variable that has a :term:`type annotation "
74+
"``field`` is defined as a class variable that has a :term:`type annotation "
7575
"<variable annotation>`. With two exceptions described below, nothing in "
7676
":func:`dataclass` examines the type specified in the variable annotation."
7777
msgstr ""
78-
":func:`dataclass` 装饰器检查类以找到 ``field``。 ``field`` 被定义为具有 :term:`类型标注 "
79-
"<variable annotation>` 的类变量。除了下面描述的两个例外,在 :func:`dataclass` "
80-
"中没有任何内容检查变量标注中指定的类型。"
8178

8279
#: ../../library/dataclasses.rst:60
8380
msgid ""
@@ -88,12 +85,11 @@ msgstr "所有生成的方法中的字段顺序是它们在类定义中出现的
8885
#: ../../library/dataclasses.rst:63
8986
msgid ""
9087
"The :func:`dataclass` decorator will add various \"dunder\" methods to the "
91-
"class, described below. If any of the added methods already exist on the "
88+
"class, described below. If any of the added methods already exist in the "
9289
"class, the behavior depends on the parameter, as documented below. The "
93-
"decorator returns the same class that is called on; no new class is created."
90+
"decorator returns the same class that it is called on; no new class is "
91+
"created."
9492
msgstr ""
95-
":func:`dataclass` "
96-
"装饰器将向类中添加各种“dunder”方法,如下所述。如果类中已存在任何添加的方法,则行为取决于参数,如下所述。装饰器返回被调用的同一个类;没有创建新类。"
9793

9894
#: ../../library/dataclasses.rst:69
9995
msgid ""
@@ -269,10 +265,9 @@ msgstr "在这个例子中, ``a`` 和 ``b`` 都将包含在添加的 :meth:`__
269265
#: ../../library/dataclasses.rst:177
270266
msgid ""
271267
":exc:`TypeError` will be raised if a field without a default value follows a"
272-
" field with a default value. This is true either when this occurs in a "
273-
"single class, or as a result of class inheritance."
268+
" field with a default value. This is true whether this occurs in a single "
269+
"class, or as a result of class inheritance."
274270
msgstr ""
275-
"如果没有默认值的字段跟在具有默认值的字段后,将引发 :exc:`TypeError` 。当这发生在单个类中时,或者作为类继承的结果时,都是如此。"
276271

277272
#: ../../library/dataclasses.rst:183
278273
msgid ""
@@ -499,13 +494,11 @@ msgstr "等价于"
499494

500495
#: ../../library/dataclasses.rst:364
501496
msgid ""
502-
"Creates a new object of the same type of ``instance``, replacing fields with"
497+
"Creates a new object of the same type as ``instance``, replacing fields with"
503498
" values from ``changes``. If ``instance`` is not a Data Class, raises "
504499
":exc:`TypeError`. If values in ``changes`` do not specify fields, raises "
505500
":exc:`TypeError`."
506501
msgstr ""
507-
"创建一个 ``instance`` 相同类型的新对象,用 ``changes`` 中的值替换字段。如果 ``instance`` 不是数据类,则引发 "
508-
":exc:`TypeError` 。如果 ``changes`` 中的值没有指定字段,则引发 :exc:`TypeError` 。"
509502

510503
#: ../../library/dataclasses.rst:369
511504
msgid ""

0 commit comments

Comments
 (0)