@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version :Python 3.14\n "
17
17
"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 "
19
19
"PO-Revision-Date :2021-06-28 01:08+0000\n "
20
20
"Last-Translator :Takeshi Nakazato, 2025\n "
21
21
"Language-Team :Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -1410,22 +1410,36 @@ msgid ""
1410
1410
"positional-only first, then positional-or-keyword, and that parameters with "
1411
1411
"defaults follow parameters without defaults."
1412
1412
msgstr ""
1413
+ "オプション引数 *parameters* は :class:`Parameter` オブジェクトのシーケンス"
1414
+ "で、重複した名前のパラメータはないか、パラメータの並び順は正しいか、すなわち"
1415
+ "位置専用引数からはじまり次に位置引数としてもキーワード引数としても指定可能な"
1416
+ "パラメータが続くかどうか、またデフォルト値のあるパラメータがデフォルト値のな"
1417
+ "いパラメータの後にあるかどうか、といった項目をチェックするための検証が行われ"
1418
+ "ます。"
1413
1419
1414
1420
#: ../../library/inspect.rst:801
1415
1421
msgid ""
1416
1422
"The optional *return_annotation* argument can be an arbitrary Python object. "
1417
1423
"It represents the\" return\" annotation of the callable."
1418
1424
msgstr ""
1425
+ "オプション引数 *return_annotation* は任意の Python オブジェクトをとることがで"
1426
+ "きます。この引数は、呼び出し可能オブジェクトの\" 戻り値\" に対するアノテー"
1427
+ "ションを表します。"
1419
1428
1420
1429
#: ../../library/inspect.rst:804
1421
1430
msgid ""
1422
1431
":class:`!Signature` objects are *immutable*. Use :meth:`Signature.replace` "
1423
1432
"or :func:`copy.replace` to make a modified copy."
1424
1433
msgstr ""
1434
+ ":class:`!Signature` オブジェクトは *immutable* すなわち変更不可能です。変更さ"
1435
+ "れたコピーを生成するためには、 :meth:`Signature.replace` または :func:`copy."
1436
+ "replace` を使ってください。"
1425
1437
1426
1438
#: ../../library/inspect.rst:807
1427
1439
msgid ":class:`!Signature` objects are now picklable and :term:`hashable`."
1428
1440
msgstr ""
1441
+ ":class:`!Signature` オブジェクトは pickle 可能かつ :term:`ハッシュ可能` にな"
1442
+ "りました。"
1429
1443
1430
1444
#: ../../library/inspect.rst:812
1431
1445
msgid "A special class-level marker to specify absence of a return annotation."
@@ -1437,13 +1451,19 @@ msgid ""
1437
1451
"`Parameter` objects. Parameters appear in strict definition order, "
1438
1452
"including keyword-only parameters."
1439
1453
msgstr ""
1454
+ "パラメータの名前と対応する :class:`Parameter` オブジェクトの、順序ありマッピ"
1455
+ "ングです。パラメータは、キーワード専用パラメータも含めて、厳密な定義順に現れ"
1456
+ "ます。"
1440
1457
1441
1458
#: ../../library/inspect.rst:820 ../../library/inspect.rst:1184
1442
1459
msgid ""
1443
1460
"Python only explicitly guaranteed that it preserved the declaration order of "
1444
1461
"keyword-only parameters as of version 3.7, although in practice this order "
1445
1462
"had always been preserved in Python 3."
1446
1463
msgstr ""
1464
+ "バージョン 3.7 までは、Python はキーワード専用パラメータだけしか順序を保つこ"
1465
+ "とを明確に保証していませんでした。とはいえ Python 3 では事実上パラメータの順"
1466
+ "序は維持されていました。"
1447
1467
1448
1468
#: ../../library/inspect.rst:827
1449
1469
msgid ""
@@ -1460,6 +1480,10 @@ msgid ""
1460
1480
"Returns :class:`BoundArguments` if ``*args`` and ``**kwargs`` match the "
1461
1481
"signature, or raises a :exc:`TypeError`."
1462
1482
msgstr ""
1483
+ "位置引数およびキーワード引数からパラメータへのマッピングを生成します。 "
1484
+ "``*args`` と ``**kwargs`` がシグネチャに一致した場合 :class:`BoundArguments` "
1485
+ "を返します。引数がシグネチャと一致しない場合は :exc:`TypeError` 例外を送出し"
1486
+ "ます。"
1463
1487
1464
1488
#: ../../library/inspect.rst:838
1465
1489
msgid ""
@@ -1468,6 +1492,10 @@ msgid ""
1468
1492
"Returns :class:`BoundArguments`, or raises a :exc:`TypeError` if the passed "
1469
1493
"arguments do not match the signature."
1470
1494
msgstr ""
1495
+ ":meth:`Signature.bind` と同様に動作しますが、いくつかの必要な引数を省略するこ"
1496
+ "とができます (:func:`functools.partial` の振る舞いによく似たものです) 。 :"
1497
+ "class:`BoundArguments` を返します。引数がシグネチャと一致しない場合は :exc:"
1498
+ "`TypeError` 例外を送出します。"
1471
1499
1472
1500
#: ../../library/inspect.rst:845
1473
1501
msgid ""
@@ -1477,6 +1505,11 @@ msgid ""
1477
1505
"signature. To remove ``return_annotation`` from the copied :class:`!"
1478
1506
"Signature`, pass in :attr:`Signature.empty`."
1479
1507
msgstr ""
1508
+ ":meth:`replace` メソッドが呼び出されたインスタンスから、新しい :class:"
1509
+ "`Signature` インスタンスを生成します。元になるシグネチャのプロパティをオー"
1510
+ "バーライドするために異なる *parameters* や *return_annotation* を渡すことが可"
1511
+ "能です。 ``return_annotation`` をコピーされた :class:`!Signature` インスタン"
1512
+ "スから削除したい場合、 :attr:`Signature.empty` を渡してください。"
1480
1513
1481
1514
#: ../../library/inspect.rst:853
1482
1515
msgid ""
@@ -1488,23 +1521,35 @@ msgid ""
1488
1521
">>> str(new_sig)\n"
1489
1522
"\" (a, b) -> 'new return anno'\" "
1490
1523
msgstr ""
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'\" "
1491
1531
1492
1532
#: ../../library/inspect.rst:863
1493
1533
msgid ""
1494
1534
":class:`Signature` objects are also supported by the generic function :func:"
1495
1535
"`copy.replace`."
1496
1536
msgstr ""
1537
+ ":class:`Signature` オブジェクトのコピーは、汎用の関数 :func:`copy.replace` で"
1538
+ "もサポートされています。"
1497
1539
1498
1540
#: ../../library/inspect.rst:868
1499
1541
msgid "Create a string representation of the :class:`Signature` object."
1500
- msgstr ""
1542
+ msgstr ":class:`Signature` オブジェクトの文字列表現を生成します。 "
1501
1543
1502
1544
#: ../../library/inspect.rst:870
1503
1545
msgid ""
1504
1546
"If *max_width* is passed, the method will attempt to fit the signature into "
1505
1547
"lines of at most *max_width* characters. If the signature is longer than "
1506
1548
"*max_width*, all parameters will be on separate lines."
1507
1549
msgstr ""
1550
+ "*max_width* が指定されると、メソッドはシグネチャをそれぞれの行が最大 "
1551
+ "*max_width* 文字になるようにフォーマットを試みます。シグネチャが *max_width* "
1552
+ "よりも長くなってしまう場合は、全てのパラメータごとに改行されます。"
1508
1553
1509
1554
#: ../../library/inspect.rst:875
1510
1555
msgid ""