@@ -18,7 +18,7 @@ msgid ""
18
18
msgstr ""
19
19
"Project-Id-Version : Python 3.8\n "
20
20
"Report-Msgid-Bugs-To : \n "
21
- "POT-Creation-Date : 2019-10-11 11:39 +0000\n "
21
+ "POT-Creation-Date : 2019-10-14 11:41 +0000\n "
22
22
"PO-Revision-Date : 2017-02-16 23:32+0000\n "
23
23
"Last-Translator : tomo, 2019\n "
24
24
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -42,6 +42,8 @@ msgid ""
42
42
"They can be used by third party tools such as type checkers, IDEs, linters, "
43
43
"etc."
44
44
msgstr ""
45
+ "Python ランタイムは、関数や変数の型アノテーションを強制しません。\n"
46
+ "型アノテーションは、型チェッカー、IDE、linterなどのサードパーティーツールで使われます。"
45
47
46
48
#: ../../library/typing.rst:19
47
49
msgid ""
@@ -52,6 +54,10 @@ msgid ""
52
54
":class:`Generic`. For full specification please see :pep:`484`. For a "
53
55
"simplified introduction to type hints see :pep:`483`."
54
56
msgstr ""
57
+ "このモジュールは :pep:`484`, :pep:`526`, :pep:`544`, :pep:`586`, :pep:`589`, :pep:`591` によって規定された型ヒントへのランタイムサポートを提供します。\n"
58
+ "最も基本的なサポートとして :data:`Any`、 :data:`Union`、 :data:`Tuple`、 :data:`Callable`、 :class:`TypeVar` および :class:`Generic` 型を含みます。\n"
59
+ "完全な仕様は :pep:`484` を参照してください。\n"
60
+ "型ヒントの簡単な導入は :pep:`483` を参照してください。"
55
61
56
62
#: ../../library/typing.rst:27
57
63
msgid ""
@@ -124,6 +130,9 @@ msgid ""
124
130
"it. That means the expression ``Derived(some_value)`` does not create a new "
125
131
"class or introduce any overhead beyond that of a regular function call."
126
132
msgstr ""
133
+ "これらのチェックは静的型検査器のみによって強制されるということに注意してください。\n"
134
+ "実行時に ``Derived = NewType('Derived', Base)`` という文は渡された仮引数をただちに返す ``Derived`` 関数を作ります。\n"
135
+ "つまり ``Derived(some_value)`` という式は新しいクラスを作ることはなく、通常の関数呼び出し以上のオーバーヘッドがないということを意味します。"
127
136
128
137
#: ../../library/typing.rst:110
129
138
msgid ""
@@ -241,11 +250,11 @@ msgstr ""
241
250
242
251
#: ../../library/typing.rst:234
243
252
msgid ""
244
- "The :class:`Generic` base class uses a metaclass that defines "
245
- ":meth:`__getitem__` so that ``LoggedVar[t]`` is valid as a type::"
253
+ "The :class:`Generic` base class defines :meth:`__class_getitem__` so that "
254
+ "``LoggedVar[t]`` is valid as a type::"
246
255
msgstr ""
247
- "基底クラス :class:`Generic` は ``LoggedVar[t]`` が型として有効になるように :meth:`__getitem__` "
248
- "を定義したメタクラスを使います。 "
256
+ "基底クラス :class:`Generic` には ``LoggedVar[t]`` が型として有効になるように "
257
+ ":meth:`__class_getitem__` メソッドが定義されています:: "
249
258
250
259
#: ../../library/typing.rst:243
251
260
msgid ""
@@ -287,7 +296,7 @@ msgstr "ユーザ定義のジェネリック型エイリアスもサポートさ
287
296
288
297
#: ../../library/typing.rst:310
289
298
msgid ":class:`Generic` no longer has a custom metaclass."
290
- msgstr ""
299
+ msgstr ":class:`Generic` にあった独自のメタクラスは無くなりました。 "
291
300
292
301
#: ../../library/typing.rst:313
293
302
msgid ""
@@ -296,6 +305,9 @@ msgid ""
296
305
"parameterizing generics is cached, and most types in the typing module are "
297
306
"hashable and comparable for equality."
298
307
msgstr ""
308
+ "ユーザーが定義したジェネリッククラスはメタクラスの衝突を起こすことなく基底クラスに抽象基底クラスをとれます。\n"
309
+ "ジェネリックメタクラスはサポートされません。\n"
310
+ "パラメータ化を行うジェネリクスの結果はキャッシュされていて、 typing モジュールのほとんどの型はハッシュ化でき、等価比較できます。"
299
311
300
312
#: ../../library/typing.rst:320
301
313
msgid "The :data:`Any` type"
@@ -372,14 +384,16 @@ msgstr ""
372
384
373
385
#: ../../library/typing.rst:398
374
386
msgid "Nominal vs structural subtyping"
375
- msgstr ""
387
+ msgstr "名前的部分型 vs 構造的部分型 "
376
388
377
389
#: ../../library/typing.rst:400
378
390
msgid ""
379
391
"Initially :pep:`484` defined Python static type system as using *nominal "
380
392
"subtyping*. This means that a class ``A`` is allowed where a class ``B`` is "
381
393
"expected if and only if ``A`` is a subclass of ``B``."
382
394
msgstr ""
395
+ "初めは :pep:`484` は Python の静的型システムを *名前的部分型* を使って定義していました。\n"
396
+ "名前的部分型とは、クラス ``B`` が期待されているところにクラス ``A`` が許容されるのは ``A`` が ``B`` のサブクラスの場合かつその場合に限る、ということです。"
383
397
384
398
#: ../../library/typing.rst:404
385
399
msgid ""
0 commit comments