@@ -15,7 +15,7 @@ msgid ""
1515msgstr ""
1616"Project-Id-Version : Python 3.14\n "
1717"Report-Msgid-Bugs-To : \n "
18- "POT-Creation-Date : 2025-06-06 14:20 +0000\n "
18+ "POT-Creation-Date : 2025-06-13 14:21 +0000\n "
1919"PO-Revision-Date : 2021-06-28 01:08+0000\n "
2020"Last-Translator : Takeshi Nakazato, 2025\n "
2121"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -1410,22 +1410,36 @@ msgid ""
14101410"positional-only first, then positional-or-keyword, and that parameters with "
14111411"defaults follow parameters without defaults."
14121412msgstr ""
1413+ "オプション引数 *parameters* は :class:`Parameter` オブジェクトのシーケンス"
1414+ "で、重複した名前のパラメータはないか、パラメータの並び順は正しいか、すなわち"
1415+ "位置専用引数からはじまり次に位置引数としてもキーワード引数としても指定可能な"
1416+ "パラメータが続くかどうか、またデフォルト値のあるパラメータがデフォルト値のな"
1417+ "いパラメータの後にあるかどうか、といった項目をチェックするための検証が行われ"
1418+ "ます。"
14131419
14141420#: ../../library/inspect.rst:801
14151421msgid ""
14161422"The optional *return_annotation* argument can be an arbitrary Python object. "
14171423"It represents the \" return\" annotation of the callable."
14181424msgstr ""
1425+ "オプション引数 *return_annotation* は任意の Python オブジェクトをとることがで"
1426+ "きます。この引数は、呼び出し可能オブジェクトの \" 戻り値\" に対するアノテー"
1427+ "ションを表します。"
14191428
14201429#: ../../library/inspect.rst:804
14211430msgid ""
14221431":class:`!Signature` objects are *immutable*. Use :meth:`Signature.replace` "
14231432"or :func:`copy.replace` to make a modified copy."
14241433msgstr ""
1434+ ":class:`!Signature` オブジェクトは *immutable* すなわち変更不可能です。変更さ"
1435+ "れたコピーを生成するためには、 :meth:`Signature.replace` または :func:`copy."
1436+ "replace` を使ってください。"
14251437
14261438#: ../../library/inspect.rst:807
14271439msgid ":class:`!Signature` objects are now picklable and :term:`hashable`."
14281440msgstr ""
1441+ ":class:`!Signature` オブジェクトは pickle 可能かつ :term:`ハッシュ可能` にな"
1442+ "りました。"
14291443
14301444#: ../../library/inspect.rst:812
14311445msgid "A special class-level marker to specify absence of a return annotation."
@@ -1437,13 +1451,19 @@ msgid ""
14371451"`Parameter` objects. Parameters appear in strict definition order, "
14381452"including keyword-only parameters."
14391453msgstr ""
1454+ "パラメータの名前と対応する :class:`Parameter` オブジェクトの、順序ありマッピ"
1455+ "ングです。パラメータは、キーワード専用パラメータも含めて、厳密な定義順に現れ"
1456+ "ます。"
14401457
14411458#: ../../library/inspect.rst:820 ../../library/inspect.rst:1184
14421459msgid ""
14431460"Python only explicitly guaranteed that it preserved the declaration order of "
14441461"keyword-only parameters as of version 3.7, although in practice this order "
14451462"had always been preserved in Python 3."
14461463msgstr ""
1464+ "バージョン 3.7 までは、Python はキーワード専用パラメータだけしか順序を保つこ"
1465+ "とを明確に保証していませんでした。とはいえ Python 3 では事実上パラメータの順"
1466+ "序は維持されていました。"
14471467
14481468#: ../../library/inspect.rst:827
14491469msgid ""
@@ -1460,6 +1480,10 @@ msgid ""
14601480"Returns :class:`BoundArguments` if ``*args`` and ``**kwargs`` match the "
14611481"signature, or raises a :exc:`TypeError`."
14621482msgstr ""
1483+ "位置引数およびキーワード引数からパラメータへのマッピングを生成します。 "
1484+ "``*args`` と ``**kwargs`` がシグネチャに一致した場合 :class:`BoundArguments` "
1485+ "を返します。引数がシグネチャと一致しない場合は :exc:`TypeError` 例外を送出し"
1486+ "ます。"
14631487
14641488#: ../../library/inspect.rst:838
14651489msgid ""
@@ -1468,6 +1492,10 @@ msgid ""
14681492"Returns :class:`BoundArguments`, or raises a :exc:`TypeError` if the passed "
14691493"arguments do not match the signature."
14701494msgstr ""
1495+ ":meth:`Signature.bind` と同様に動作しますが、いくつかの必要な引数を省略するこ"
1496+ "とができます (:func:`functools.partial` の振る舞いによく似たものです) 。 :"
1497+ "class:`BoundArguments` を返します。引数がシグネチャと一致しない場合は :exc:"
1498+ "`TypeError` 例外を送出します。"
14711499
14721500#: ../../library/inspect.rst:845
14731501msgid ""
@@ -1477,6 +1505,11 @@ msgid ""
14771505"signature. To remove ``return_annotation`` from the copied :class:`!"
14781506"Signature`, pass in :attr:`Signature.empty`."
14791507msgstr ""
1508+ ":meth:`replace` メソッドが呼び出されたインスタンスから、新しい :class:"
1509+ "`Signature` インスタンスを生成します。元になるシグネチャのプロパティをオー"
1510+ "バーライドするために異なる *parameters* や *return_annotation* を渡すことが可"
1511+ "能です。 ``return_annotation`` をコピーされた :class:`!Signature` インスタン"
1512+ "スから削除したい場合、 :attr:`Signature.empty` を渡してください。"
14801513
14811514#: ../../library/inspect.rst:853
14821515msgid ""
@@ -1488,23 +1521,35 @@ msgid ""
14881521">>> str(new_sig)\n"
14891522"\" (a, b) -> 'new return anno'\" "
14901523msgstr ""
1524+ ">>> def test(a, b):\n"
1525+ "... pass\n"
1526+ "...\n"
1527+ ">>> sig = signature(test)\n"
1528+ ">>> new_sig = sig.replace(return_annotation=\" new return anno\" )\n"
1529+ ">>> str(new_sig)\n"
1530+ "\" (a, b) -> 'new return anno'\" "
14911531
14921532#: ../../library/inspect.rst:863
14931533msgid ""
14941534":class:`Signature` objects are also supported by the generic function :func:"
14951535"`copy.replace`."
14961536msgstr ""
1537+ ":class:`Signature` オブジェクトのコピーは、汎用の関数 :func:`copy.replace` で"
1538+ "もサポートされています。"
14971539
14981540#: ../../library/inspect.rst:868
14991541msgid "Create a string representation of the :class:`Signature` object."
1500- msgstr ""
1542+ msgstr ":class:`Signature` オブジェクトの文字列表現を生成します。 "
15011543
15021544#: ../../library/inspect.rst:870
15031545msgid ""
15041546"If *max_width* is passed, the method will attempt to fit the signature into "
15051547"lines of at most *max_width* characters. If the signature is longer than "
15061548"*max_width*, all parameters will be on separate lines."
15071549msgstr ""
1550+ "*max_width* が指定されると、メソッドはシグネチャをそれぞれの行が最大 "
1551+ "*max_width* 文字になるようにフォーマットを試みます。シグネチャが *max_width* "
1552+ "よりも長くなってしまう場合は、全てのパラメータごとに改行されます。"
15081553
15091554#: ../../library/inspect.rst:875
15101555msgid ""
0 commit comments