@@ -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-05-30 14:22 +0000\n "
18+ "POT-Creation-Date : 2025-06-06 14:20 +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/ "
@@ -1124,6 +1124,12 @@ msgid ""
11241124"documentation string from the inheritance hierarchy. Return ``None`` if the "
11251125"documentation string is invalid or missing."
11261126msgstr ""
1127+ "オブジェクトのドキュメンテーション文字列を、 :func:`cleandoc` で整理した上で"
1128+ "取得します。オブジェクトに対するドキュメンテーション文字列が与えられていない"
1129+ "場合で、かつオブジェクトがクラス、メソッド、プロパティ、デスクリプタのいずれ"
1130+ "かである場合、継承の階層構造からドキュメンテーション文字列を探し出して返しま"
1131+ "す。ドキュメンテーション文字列がないか、または不正な場合は ``None`` を返しま"
1132+ "す。"
11271133
11281134#: ../../library/inspect.rst:627
11291135msgid "Documentation strings are now inherited if not overridden."
@@ -1139,6 +1145,11 @@ msgid ""
11391145"code is unavailable, return ``None``. This could happen if the object has "
11401146"been defined in C or the interactive shell."
11411147msgstr ""
1148+ "オブジェクトのソースコード直前 (クラス、関数、メソッドの場合) または Python "
1149+ "ソースファイルの先頭 (モジュールの場合) の任意の行数にわたるコメントを、ひと"
1150+ "つの文字列として返します。オブジェクトのソースコードが存在しない場合は "
1151+ "``None`` を返します。オブジェクトが C で定義されている場合や、対話型シェルで"
1152+ "定義したオブジェクトの場合にこのようなことが起こり得ます。"
11421153
11431154#: ../../library/inspect.rst:642
11441155msgid ""
@@ -1155,13 +1166,18 @@ msgid ""
11551166"Try to guess which module an object was defined in. Return ``None`` if the "
11561167"module cannot be determined."
11571168msgstr ""
1169+ "オブジェクトが定義されているモジュールの推定を試みます。モジュールが決められ"
1170+ "ない場合は ``None`` を返します。"
11581171
11591172#: ../../library/inspect.rst:655
11601173msgid ""
11611174"Return the name of the Python source file in which an object was defined or "
11621175"``None`` if no way can be identified to get the source. This will fail with "
11631176"a :exc:`TypeError` if the object is a built-in module, class, or function."
11641177msgstr ""
1178+ "オブジェクトが定義されている Python ソースファイルの名前を返します。ソースを"
1179+ "取得する方法がない場合は ``None`` を返します。組み込みのモジュール、クラス、"
1180+ "関数に対しては :exc:`TypeError` で失敗します。"
11651181
11661182#: ../../library/inspect.rst:663
11671183msgid ""
@@ -1173,6 +1189,13 @@ msgid ""
11731189"code cannot be retrieved. A :exc:`TypeError` is raised if the object is a "
11741190"built-in module, class, or function."
11751191msgstr ""
1192+ "オブジェクトを定義しているソースコードの行のリストと、定義の開始行番号を返し"
1193+ "ます。引数にはモジュール、クラス、メソッド、関数、トレースバック、またはコー"
1194+ "ドオブジェクトを渡すことができます。オブジェクトに対応するソースコードが行の"
1195+ "リストとして返されます。また行番号は、元のソースファイル中でコードが見つかっ"
1196+ "た最初の行を示します。ソースコードを探し出すことができなかった場合、 :exc:"
1197+ "`OSError` 例外が送出されます。オブジェクトが組み込みのモジュール、クラス、ま"
1198+ "たは関数である場合は :exc:`TypeError` 例外が送出されます。"
11761199
11771200#: ../../library/inspect.rst:672 ../../library/inspect.rst:686
11781201msgid ""
@@ -1190,6 +1213,12 @@ msgid ""
11901213"the source code cannot be retrieved. A :exc:`TypeError` is raised if the "
11911214"object is a built-in module, class, or function."
11921215msgstr ""
1216+ "オブジェクトを定義しているソースコードのテキストを返します。引数にはモジュー"
1217+ "ル、クラス、メソッド、関数、トレースバック、フレーム、またはコードオブジェク"
1218+ "トを渡すことができます。ソースコードはひとつの文字列として返されます。ソース"
1219+ "コードを探し出すことができなかった場合、 :exc:`OSError` 例外が送出されます。"
1220+ "オブジェクトが組み込みのモジュール、クラス、または関数である場合は :exc:"
1221+ "`TypeError` 例外が送出されます。"
11931222
11941223#: ../../library/inspect.rst:693
11951224msgid ""
@@ -1219,10 +1248,15 @@ msgid ""
12191248"object and its return annotation. To retrieve a :class:`!Signature` object, "
12201249"use the :func:`!signature` function."
12211250msgstr ""
1251+ ":class:`Signature` オブジェクトは、呼び出し可能オブジェクトの呼び出しシグネ"
1252+ "チャと戻り値のアノテーションを表現します。 :class:`!Signature` オブジェクトを"
1253+ "取得するには、 :func:`!signature` 関数を使ってください。"
12221254
12231255#: ../../library/inspect.rst:716
12241256msgid "Return a :class:`Signature` object for the given *callable*:"
12251257msgstr ""
1258+ "*callable* で与えられたオブジェクトに対する :class:`Signature` オブジェクトを"
1259+ "返します:"
12261260
12271261#: ../../library/inspect.rst:718
12281262msgid ""
@@ -1241,6 +1275,20 @@ msgid ""
12411275">>> sig.parameters['b'].annotation\n"
12421276"<class 'int'>"
12431277msgstr ""
1278+ ">>> from inspect import signature\n"
1279+ ">>> def foo(a, *, b:int, **kwargs):\n"
1280+ "... pass\n"
1281+ "\n"
1282+ ">>> sig = signature(foo)\n"
1283+ "\n"
1284+ ">>> str(sig)\n"
1285+ "'(a, *, b: int, **kwargs)'\n"
1286+ "\n"
1287+ ">>> str(sig.parameters['b'])\n"
1288+ "'b: int'\n"
1289+ "\n"
1290+ ">>> sig.parameters['b'].annotation\n"
1291+ "<class 'int'>"
12441292
12451293#: ../../library/inspect.rst:735
12461294msgid ""
0 commit comments