1212# souma987, 2023
1313# Yosuke Miyashita, 2024
1414# Takuya Futatsugi, 2024
15+ # righteous, 2024
1516#
1617#, fuzzy
1718msgid ""
@@ -20,7 +21,7 @@ msgstr ""
2021"Report-Msgid-Bugs-To : \n "
2122"POT-Creation-Date : 2024-06-28 14:15+0000\n "
2223"PO-Revision-Date : 2021-06-28 01:16+0000\n "
23- "Last-Translator : Takuya Futatsugi , 2024\n "
24+ "Last-Translator : righteous , 2024\n "
2425"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
2526"ja/)\n "
2627"MIME-Version : 1.0\n "
@@ -59,20 +60,32 @@ msgid ""
5960"``edge_length: float``. The function is expected to return an instance of :"
6061"class:`str`, as indicated by the ``-> str`` hint."
6162msgstr ""
63+ "``surface_area_of_cube`` 関数は、``edge_length: float`` という :term:`type "
64+ "hint` で示されているように、引数が :class:`float` のインスタンスであるという"
65+ "前提です。\n"
66+ "そして、``-> str`` というヒントにある通り、この関数は :class:`str` のインスタ"
67+ "ンスを返すことになっています。"
6268
6369#: ../../library/typing.rst:38
6470msgid ""
6571"While type hints can be simple classes like :class:`float` or :class:`str`, "
6672"they can also be more complex. The :mod:`typing` module provides a "
6773"vocabulary of more advanced type hints."
6874msgstr ""
75+ "型ヒントは :class:`float` や :class:`str` のような単純な型を指定することもで"
76+ "きますし、もっと複雑な型も指定できます。\n"
77+ ":mod:`typing` モジュールには、より高度な型ヒントを表現するためのいろいろな型"
78+ "が含まれています。"
6979
7080#: ../../library/typing.rst:42
7181msgid ""
7282"New features are frequently added to the ``typing`` module. The :pypi:"
7383"`typing_extensions` package provides backports of these new features to "
7484"older versions of Python."
7585msgstr ""
86+ "``typing`` モジュールには新しい機能が頻繁に追加されます。\n"
87+ ":pypi:`typing_extensions` パッケージを使うことで、古い Python バージョンから"
88+ "もその新機能を使うことができます。"
7689
7790#: ../../library/typing.rst:48
7891msgid ""
@@ -121,7 +134,7 @@ msgstr ""
121134
122135#: ../../library/typing.rst:64
123136msgid "Specification for the Python Type System"
124- msgstr ""
137+ msgstr "Python 型システムの仕様 "
125138
126139#: ../../library/typing.rst:66
127140msgid ""
@@ -333,6 +346,10 @@ msgid ""
333346"be expressed by defining a :class:`Protocol` class with a :meth:`~object."
334347"__call__` method:"
335348msgstr ""
349+ "``Callable`` は可変引数、:ref:`オーバーロード関数 <overload>`、キーワード専用"
350+ "引数などを含む複雑な型シグネチャを表現することはできません。\n"
351+ "しかし、:class:`Protocol` クラスとその :meth:`~object.__call__` メソッドを定"
352+ "義すれば表現することができます:"
336353
337354#: ../../library/typing.rst:277
338355msgid ""
@@ -344,6 +361,13 @@ msgid ""
344361"``Callable[Concatenate[Arg1Type, Arg2Type, ..., ParamSpecVariable], "
345362"ReturnType]`` respectively."
346363msgstr ""
364+ "callable が別の callable を引数に取る場合は、:class:`ParamSpec` を使えば両者"
365+ "のパラメータ引数の依存関係を表現することができます。\n"
366+ "さらに、ある callable が別の callable から引数を追加したり削除したりする場合"
367+ "は、 :data:`Concatenate` 演算子を使うことで表現できます。\n"
368+ "その場合、callable の型は ``Callable[ParamSpecVariable, ReturnType]`` と "
369+ "``Callable[Concatenate[Arg1Type, Arg2Type, ..., ParamSpecVariable], "
370+ "ReturnType]`` という形になります。"
347371
348372#: ../../library/typing.rst:285 ../../library/typing.rst:3749
349373msgid ""
0 commit comments