@@ -52,8 +52,8 @@ msgid ""
5252"Note that this method is automatically added to the class: it is not "
5353"directly specified in the ``InventoryItem`` definition shown above."
5454msgstr ""
55- "このメソッドは自動的にクラスに追加される点に留意して下さい。メソッドは、 上記の``InventoryItem`` "
56- "の定義中に直接明記されるわけではありません 。"
55+ "このメソッドは自動的にクラスに追加される点に留意して下さい。上記の ``InventoryItem`` "
56+ "クラスの定義中にこのメソッドが直接明記されるわけではありません 。"
5757
5858#: ../../library/dataclasses.rst:45
5959msgid "Module-level decorators, classes, and functions"
@@ -135,6 +135,8 @@ msgid ""
135135"This method compares the class as if it were a tuple of its fields, in "
136136"order. Both instances in the comparison must be of the identical type."
137137msgstr ""
138+ "``eq``: true (デフォルト値) を指定すると、 :meth:`__eq__` "
139+ "メソッドが生成されます。このメソッドはクラスの比較を、そのクラスのフィールドからなるタプルを比較するように行います。比較する2つのインスタンスのクラスは同一でなければなりません。"
138140
139141#: ../../library/dataclasses.rst:107
140142msgid ""
@@ -149,12 +151,18 @@ msgid ""
149151"order. Both instances in the comparison must be of the identical type. If "
150152"``order`` is true and ``eq`` is false, a :exc:`ValueError` is raised."
151153msgstr ""
154+ "``order``: true を指定すると(デフォルト値は ``False``です) 、 "
155+ ":meth:`__lt__`、:meth:`__le__`、:meth:`__gt__`、:meth:`__ge__` "
156+ "メソッドが生成されます。これらの比較は、クラスをそのフィールドからなるタプルであるかのように取り扱います。比較される2つのインスタンスは、同一の型でなければなりません。もし"
157+ " ``order`` が true で、 ``eq`` に falseを指定すすると、:exc:`ValueError` が送出されます。"
152158
153159#: ../../library/dataclasses.rst:117
154160msgid ""
155161"If the class already defines any of :meth:`__lt__`, :meth:`__le__`, "
156162":meth:`__gt__`, or :meth:`__ge__`, then :exc:`TypeError` is raised."
157163msgstr ""
164+ "もし、クラスで既に :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, または :meth:`__ge__`"
165+ " のいずれかが定義されていると :exc:`TypeError` が送出されます。"
158166
159167#: ../../library/dataclasses.rst:121
160168msgid ""
@@ -222,20 +230,23 @@ msgstr ""
222230msgid ""
223231"``field``\\ s may optionally specify a default value, using normal Python "
224232"syntax::"
225- msgstr ""
233+ msgstr "``フィールド`` には、通常の Python の文法でデフォルト値を指定できます。 "
226234
227235#: ../../library/dataclasses.rst:170
228236msgid ""
229237"In this example, both ``a`` and ``b`` will be included in the added "
230238":meth:`__init__` method, which will be defined as::"
231239msgstr ""
240+ "この例では、生成された :meth:`__init__` メソッドには``a`` と ``b`` の両方が含まれ、以下のように定義されます::"
232241
233242#: ../../library/dataclasses.rst:175
234243msgid ""
235244":exc:`TypeError` will be raised if a field without a default value follows a"
236245" field with a default value. This is true either when this occurs in a "
237246"single class, or as a result of class inheritance."
238247msgstr ""
248+ "デフォルト値を指定しないフィールドをデフォルト値を指定したフィールドの後ろに定義すると、 :exc:`TypeError` "
249+ "が送出されます。これは、単一のクラスであっても、クラス継承の結果でも起きえます。"
239250
240251#: ../../library/dataclasses.rst:181
241252msgid ""
0 commit comments