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

Skip to content

Commit 54cfd2e

Browse files
committed
translate library/types
1 parent ef5c973 commit 54cfd2e

File tree

1 file changed

+36
-13
lines changed

1 file changed

+36
-13
lines changed

library/types.po

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ msgstr "``__prepare__`` 名前空間フックの導入"
149149

150150
#: ../../library/types.rst:74
151151
msgid "Resolve MRO entries dynamically as specified by :pep:`560`."
152-
msgstr ""
152+
msgstr ":pep:`560` で指定されたとおりに MRO エントリを動的に解決します。"
153153

154154
#: ../../library/types.rst:76
155155
msgid ""
@@ -160,6 +160,7 @@ msgid ""
160160
"it doesn't have an :meth:`!__mro_entries__` method, then it is included in "
161161
"the return tuple unchanged."
162162
msgstr ""
163+
"この関数は、 *bases* 内にある :class:`type` のインスタンスでないアイテムを探し、 :meth:`~object.__mro_entries__` メソッドを持つオブジェクトを、このメソッドを呼び出した結果をアンパックしたものに置き換えたタプルを返します。 *bases* のアイテムが :class:`type` のインスタンスである場合、または :meth:`!__mro_entries__` メソッドを持たない場合は、戻り値のタプルには変更されずに含まれます。"
163164

164165
#: ../../library/types.rst:87
165166
msgid ""
@@ -168,6 +169,7 @@ msgid ""
168169
"(following the mechanisms laid out in :pep:`560`). This is useful for "
169170
"introspecting :ref:`Generics <user-defined-generics>`."
170171
msgstr ""
172+
"いずれかの基底クラスに対して :meth:`~object.__mro_entries__` メソッドが呼び出される前に、 *cls* の基底クラスとして元々与えられたオブジェクトのタプルを返します (:pep:`560` で定められた仕組みに従って)。これは :ref:`ジェネリクス <user-defined-generics>` の内省に有用です。"
171173

172174
#: ../../library/types.rst:92
173175
msgid ""
@@ -176,6 +178,7 @@ msgid ""
176178
"``__orig_bases__`` attribute, :attr:`cls.__bases__ <type.__bases__>` is "
177179
"returned."
178180
msgstr ""
181+
"``__orig_bases__`` 属性を持つクラスの場合、この関数は ``cls.__orig_bases__`` の値を返します。 ``__orig_bases__`` 属性を持たないクラスの場合、 :attr:`cls.__bases__ <type.__bases__>` が返されます。"
179182

180183
#: ../../library/types.rst:97
181184
msgid "Examples::"
@@ -304,6 +307,7 @@ msgid ""
304307
"The type of :ref:`code objects <code-objects>` such as returned by :func:"
305308
"`compile`."
306309
msgstr ""
310+
":func:`compile` によって返されるような :ref:`コードオブジェクト <code-objects>` の型です。"
307311

308312
#: ../../library/types.rst:193
309313
msgid ""
@@ -321,12 +325,14 @@ msgid ""
321325
"required by the initializer. The audit event only occurs for direct "
322326
"instantiation of code objects, and is not raised for normal compilation."
323327
msgstr ""
328+
"監査対象の引数は、イニシャライザの必要とする名前や位置と一致しない可能性があることに注意してください。この監査イベントは、コードオブジェクトの直接インスタンス化の場合にのみ発生し、通常のコンパイル時には発生しません。"
324329

325330
#: ../../library/types.rst:201
326331
msgid ""
327332
"The type for cell objects: such objects are used as containers for a "
328333
"function's :term:`closure variables <closure variable>`."
329334
msgstr ""
335+
"セルオブジェクトの型です。このオブジェクトは、関数の :term:`クロージャ変数 <closure variable>` のコンテナとして使用されます。"
330336

331337
#: ../../library/types.rst:209
332338
msgid "The type of methods of user-defined class instances."
@@ -347,12 +353,14 @@ msgid ""
347353
"The type of methods of some built-in data types and base classes such as :"
348354
"meth:`object.__init__` or :meth:`object.__lt__`."
349355
msgstr ""
356+
":meth:`object.__init__` や :meth:`object.__lt__` のような、一部の組み込みデータ型や基底クラスのメソッドの型です。"
350357

351358
#: ../../library/types.rst:230
352359
msgid ""
353360
"The type of *bound* methods of some built-in data types and base classes. "
354361
"For example it is the type of :code:`object().__str__`."
355362
msgstr ""
363+
"一部の組み込みデータ型や基底クラスの *バインドされた* メソッドの型です。例えば、 :code:`object().__str__` の型です。"
356364

357365
#: ../../library/types.rst:238
358366
msgid "The type of :data:`NotImplemented`."
@@ -362,12 +370,14 @@ msgstr ":data:`NotImplemented` の型です。"
362370
msgid ""
363371
"The type of methods of some built-in data types such as :meth:`str.join`."
364372
msgstr ""
373+
":meth:`str.join` のような、一部の組み込みデータ型のメソッドの型です。"
365374

366375
#: ../../library/types.rst:252
367376
msgid ""
368377
"The type of *unbound* class methods of some built-in data types such as "
369378
"``dict.__dict__['fromkeys']``."
370379
msgstr ""
380+
"``dict.__dict__['fromkeys']`` のような、一部の組み込みデータ型の *アンバインドされた* クラスメソッドの型です。"
371381

372382
#: ../../library/types.rst:260
373383
msgid ""
@@ -379,17 +389,18 @@ msgstr ""
379389

380390
#: ../../library/types.rst:265
381391
msgid ":ref:`Documentation on module objects <module-objects>`"
382-
msgstr ""
392+
msgstr ":ref:`モジュールオブジェクトのドキュメント <module-objects>`"
383393

384394
#: ../../library/types.rst:266
385395
msgid ""
386396
"Provides details on the special attributes that can be found on instances "
387397
"of :class:`!ModuleType`."
388398
msgstr ""
399+
":class:`!ModuleType` のインスタンスにおいて見つかる特殊属性の詳細を提供しています。"
389400

390401
#: ../../library/types.rst:269
391402
msgid ":func:`importlib.util.module_from_spec`"
392-
msgstr ""
403+
msgstr ":func:`importlib.util.module_from_spec`"
393404

394405
#: ../../library/types.rst:270
395406
msgid ""
@@ -399,6 +410,7 @@ msgid ""
399410
"ModuleType` instances which ensures the various attributes are set "
400411
"appropriately."
401412
msgstr ""
413+
":class:`!ModuleType` コンストラクタを使用して作成したモジュールは、多くの特殊属性が未設定であるか、デフォルト値に設定された状態で作成されます。 :func:`!module_from_spec` は、さまざまな属性が適切に設定されることを保証する、より堅牢な :class:`!ModuleType` インスタンスの作成方法を提供しています。"
402414

403415
#: ../../library/types.rst:278
404416
msgid "The type of :data:`Ellipsis`."
@@ -409,13 +421,15 @@ msgid ""
409421
"The type of :ref:`parameterized generics <types-genericalias>` such as "
410422
"``list[int]``."
411423
msgstr ""
424+
"``list[int]`` のような :ref:`パラメータ化されたジェネリクス <types-genericalias>` の型です。"
412425

413426
#: ../../library/types.rst:287
414427
msgid ""
415428
"``t_origin`` should be a non-parameterized generic class, such as ``list``, "
416429
"``tuple`` or ``dict``. ``t_args`` should be a :class:`tuple` (possibly of "
417430
"length 1) of types which parameterize ``t_origin``::"
418431
msgstr ""
432+
"``t_origin`` は、 ``list`` 、 ``tuple`` 、 ``dict`` のような、パラメータ化されていないジェネリッククラスであるべきです。 ``t_args`` は、 ``t_origin`` をパラメータ化する型の (長さは 1 であるかもしれない) :class:`tuple` であるべきです。::"
419433

420434
#: ../../library/types.rst:291
421435
msgid ""
@@ -429,15 +443,15 @@ msgstr ""
429443

430444
#: ../../library/types.rst:300
431445
msgid "This type can now be subclassed."
432-
msgstr ""
446+
msgstr "この型は今はサブクラス化できます。"
433447

434448
#: ../../library/types.rst:305
435449
msgid ":ref:`Generic Alias Types<types-genericalias>`"
436-
msgstr ""
450+
msgstr ":ref:`ジェネリックエイリアス型 <types-genericalias>`"
437451

438452
#: ../../library/types.rst:306
439453
msgid "In-depth documentation on instances of :class:`!types.GenericAlias`"
440-
msgstr ""
454+
msgstr ":class:`!types.GenericAlias` のインスタンスに関する詳細なドキュメント"
441455

442456
#: ../../library/types.rst:308
443457
msgid ":pep:`585` - Type Hinting Generics In Standard Collections"
@@ -446,15 +460,15 @@ msgstr ""
446460

447461
#: ../../library/types.rst:309
448462
msgid "Introducing the :class:`!types.GenericAlias` class"
449-
msgstr ""
463+
msgstr ":class:`!types.GenericAlias` クラスの紹介"
450464

451465
#: ../../library/types.rst:313
452466
msgid "The type of :ref:`union type expressions<types-union>`."
453-
msgstr ""
467+
msgstr ":ref:`合集型表現 <types-union>` の型です。"
454468

455469
#: ../../library/types.rst:319
456470
msgid "This is now an alias for :class:`typing.Union`."
457-
msgstr ""
471+
msgstr "現在これは :class:`typing.Union` のエイリアスです。"
458472

459473
#: ../../library/types.rst:323
460474
msgid ""
@@ -470,12 +484,14 @@ msgid ""
470484
"available attributes and operations, and guidance on creating tracebacks "
471485
"dynamically."
472486
msgstr ""
487+
"利用可能な属性と操作、およびトレースバックの動的作成のガイダンスについては、 :ref:`言語リファレンス <traceback-objects>` を参照してください。"
473488

474489
#: ../../library/types.rst:332
475490
msgid ""
476491
"The type of :ref:`frame objects <frame-objects>` such as found in :attr:`tb."
477492
"tb_frame <traceback.tb_frame>` if ``tb`` is a traceback object."
478493
msgstr ""
494+
"``tb`` がトレースバックオブジェクトの場合、 :attr:`tb.tb_frame <traceback.tb_frame>` にあるような :ref:`フレームオブジェクト <frame-objects>` の型です。"
479495

480496
#: ../../library/types.rst:338
481497
msgid ""
@@ -485,6 +501,7 @@ msgid ""
485501
"purpose as the :class:`property` type, but for classes defined in extension "
486502
"modules."
487503
msgstr ""
504+
":attr:`FrameType.f_locals <frame.f_locals>` や ``array.array.typecode`` のような、拡張モジュールにおいて ``PyGetSetDef`` で定義されたオブジェクトの型です。この型はオブジェクトの属性の記述子として使用され、 :class:`property` 型と同じ目的を持ちますが、こちらは拡張モジュールで定義されたクラスのためのものです。"
488505

489506
#: ../../library/types.rst:347
490507
msgid ""
@@ -506,6 +523,7 @@ msgid ""
506523
"will be added as an attribute on the class. This allows the slot to appear "
507524
"in the class's :attr:`~type.__dict__`."
508525
msgstr ""
526+
"さらに、 :attr:`~object.__slots__` 属性でクラスが定義された場合、各スロットに対して :class:`!MemberDescriptorType` のインスタンスがクラスの属性として追加されます。これによりスロットがクラスの :attr:`~type.__dict__` に現れるようになります。"
509527

510528
#: ../../library/types.rst:358
511529
msgid ""
@@ -530,6 +548,7 @@ msgid ""
530548
"Updated to support the new union (``|``) operator from :pep:`584`, which "
531549
"simply delegates to the underlying mapping."
532550
msgstr ""
551+
":pep:`584` からの新しい合集演算子 (``|``) をサポートするように更新されました。これは単に元になったマッピングに委託します。"
533552

534553
#: ../../library/types.rst:376
535554
msgid ""
@@ -590,15 +609,15 @@ msgstr "元になったマッピングの values に対する新しいビュー
590609

591610
#: ../../library/types.rst:418
592611
msgid "Return a reverse iterator over the keys of the underlying mapping."
593-
msgstr ""
612+
msgstr "元になったマッピングのキーを逆順で繰り返すイテレータを返します。"
594613

595614
#: ../../library/types.rst:424
596615
msgid "Return a hash of the underlying mapping."
597-
msgstr ""
616+
msgstr "元になったマッピングのハッシュを返します。"
598617

599618
#: ../../library/types.rst:430
600619
msgid "The type of :ref:`capsule objects <capsules>`."
601-
msgstr ""
620+
msgstr ":ref:`カプセルオブジェクト <capsules>` の型です。"
602621

603622
#: ../../library/types.rst:436
604623
msgid "Additional Utility Classes and Functions"
@@ -617,6 +636,7 @@ msgid ""
617636
"Unlike :class:`object`, with :class:`!SimpleNamespace` you can add and "
618637
"remove attributes."
619638
msgstr ""
639+
":class:`object` とは異なり、 :class:`!SimpleNamespace` では属性を追加したり削除したりできます。"
620640

621641
#: ../../library/types.rst:446
622642
msgid ""
@@ -628,6 +648,7 @@ msgid ""
628648
"key-value pairs from that argument (either a mapping object or an :term:"
629649
"`iterable` object producing key-value pairs). All such keys must be strings."
630650
msgstr ""
651+
":py:class:`SimpleNamespace` オブジェクトは :class:`dict` と同じ方法で初期化できます。つまり、キーワード引数、単一の位置引数、または両方で初期化できます。キーワード引数で初期化した場合、それらは直接元になる名前空間に追加されます。また、位置引数で初期化した場合、元になる名前空間はその引数からのキーバリューペアで更新されます (マッピングオブジェクトまたはキーバリューペアを生成する :term:`イテラブル <iterable>` オブジェクト)。このようなキーはすべて文字列でなければなりません。"
631652

632653
#: ../../library/types.rst:457
633654
msgid "The type is roughly equivalent to the following code::"
@@ -665,16 +686,18 @@ msgstr ""
665686
msgid ""
666687
":class:`!SimpleNamespace` objects are supported by :func:`copy.replace`."
667688
msgstr ""
689+
":class:`!SimpleNamespace` オブジェクトは :func:`copy.replace` でサポートされます。"
668690

669691
#: ../../library/types.rst:481
670692
msgid ""
671693
"Attribute order in the repr changed from alphabetical to insertion (like "
672694
"``dict``)."
673695
msgstr ""
696+
"repr の属性の順序がアルファベット順から挿入順 (``dict`` のように) に変更されました。"
674697

675698
#: ../../library/types.rst:485
676699
msgid "Added support for an optional positional argument."
677-
msgstr ""
700+
msgstr "オプションの位置引数のサポートが追加されました。"
678701

679702
#: ../../library/types.rst:490
680703
msgid "Route attribute access on a class to __getattr__."

0 commit comments

Comments
 (0)