@@ -52,8 +52,8 @@ msgid ""
52
52
"Note that this method is automatically added to the class: it is not "
53
53
"directly specified in the ``InventoryItem`` definition shown above."
54
54
msgstr ""
55
- "このメソッドは自動的にクラスに追加される点に留意して下さい。メソッドは、 上記の``InventoryItem`` "
56
- "の定義中に直接明記されるわけではありません 。"
55
+ "このメソッドは自動的にクラスに追加される点に留意して下さい。上記の ``InventoryItem`` "
56
+ "クラスの定義中にこのメソッドが直接明記されるわけではありません 。"
57
57
58
58
#: ../../library/dataclasses.rst:45
59
59
msgid "Module-level decorators, classes, and functions"
@@ -135,6 +135,8 @@ msgid ""
135
135
"This method compares the class as if it were a tuple of its fields, in "
136
136
"order. Both instances in the comparison must be of the identical type."
137
137
msgstr ""
138
+ "``eq``: true (デフォルト値) を指定すると、 :meth:`__eq__` "
139
+ "メソッドが生成されます。このメソッドはクラスの比較を、そのクラスのフィールドからなるタプルを比較するように行います。比較する2つのインスタンスのクラスは同一でなければなりません。"
138
140
139
141
#: ../../library/dataclasses.rst:107
140
142
msgid ""
@@ -149,12 +151,18 @@ msgid ""
149
151
"order. Both instances in the comparison must be of the identical type. If "
150
152
"``order`` is true and ``eq`` is false, a :exc:`ValueError` is raised."
151
153
msgstr ""
154
+ "``order``: true を指定すると(デフォルト値は ``False``です) 、 "
155
+ ":meth:`__lt__`、:meth:`__le__`、:meth:`__gt__`、:meth:`__ge__` "
156
+ "メソッドが生成されます。これらの比較は、クラスをそのフィールドからなるタプルであるかのように取り扱います。比較される2つのインスタンスは、同一の型でなければなりません。もし"
157
+ " ``order`` が true で、 ``eq`` に falseを指定すすると、:exc:`ValueError` が送出されます。"
152
158
153
159
#: ../../library/dataclasses.rst:117
154
160
msgid ""
155
161
"If the class already defines any of :meth:`__lt__`, :meth:`__le__`, "
156
162
":meth:`__gt__`, or :meth:`__ge__`, then :exc:`TypeError` is raised."
157
163
msgstr ""
164
+ "もし、クラスで既に :meth:`__lt__`, :meth:`__le__`, :meth:`__gt__`, または :meth:`__ge__`"
165
+ " のいずれかが定義されていると :exc:`TypeError` が送出されます。"
158
166
159
167
#: ../../library/dataclasses.rst:121
160
168
msgid ""
@@ -222,20 +230,23 @@ msgstr ""
222
230
msgid ""
223
231
"``field``\\ s may optionally specify a default value, using normal Python "
224
232
"syntax::"
225
- msgstr ""
233
+ msgstr "``フィールド`` には、通常の Python の文法でデフォルト値を指定できます。 "
226
234
227
235
#: ../../library/dataclasses.rst:170
228
236
msgid ""
229
237
"In this example, both ``a`` and ``b`` will be included in the added "
230
238
":meth:`__init__` method, which will be defined as::"
231
239
msgstr ""
240
+ "この例では、生成された :meth:`__init__` メソッドには``a`` と ``b`` の両方が含まれ、以下のように定義されます::"
232
241
233
242
#: ../../library/dataclasses.rst:175
234
243
msgid ""
235
244
":exc:`TypeError` will be raised if a field without a default value follows a"
236
245
" field with a default value. This is true either when this occurs in a "
237
246
"single class, or as a result of class inheritance."
238
247
msgstr ""
248
+ "デフォルト値を指定しないフィールドをデフォルト値を指定したフィールドの後ろに定義すると、 :exc:`TypeError` "
249
+ "が送出されます。これは、単一のクラスであっても、クラス継承の結果でも起きえます。"
239
250
240
251
#: ../../library/dataclasses.rst:181
241
252
msgid ""
0 commit comments