88msgstr ""
99"Project-Id-Version : Python 3.7\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-06-30 05:56 +0900\n "
11+ "POT-Creation-Date : 2018-08-06 08:47 +0900\n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"Last-Translator : yudetamago <yudetamago.orz@gmail.com>, 2018\n "
1414"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -1011,23 +1011,26 @@ msgstr "``Optional[X]`` は ``Union[X, None]`` と同値です。"
10111011#: ../../library/typing.rst:991
10121012msgid ""
10131013"Note that this is not the same concept as an optional argument, which is one"
1014- " that has a default. An optional argument with a default needn't use the "
1015- "``Optional`` qualifier on its type annotation (although it is inferred if "
1016- "the default is ``None``). A mandatory argument may still have an "
1017- "``Optional`` type if an explicit value of ``None`` is allowed."
1014+ " that has a default. An optional argument with a default does not require "
1015+ "the ``Optional`` qualifier on its type annotation just because it is "
1016+ "optional. For example::"
10181017msgstr ""
1019- "これがデフォルト値のある引数であるオプショナル引数と同じ概念ではないと言うことに注意してください。デフォルト値のあるオプショナル引数ではその型アノテーションで"
1020- " ``Optional`` を使う必要はありません (ただしデフォルトでは ``None`` と推論されます)。必須の引数は明示的な値として "
1021- "``None`` が許されるのであれば ``Optional`` 型も持つことが出来ます。"
10221018
1023- #: ../../library/typing.rst:1000
1019+ #: ../../library/typing.rst:999
1020+ msgid ""
1021+ "On the other hand, if an explicit value of ``None`` is allowed, the use of "
1022+ "``Optional`` is appropriate, whether the argument is optional or not. For "
1023+ "example::"
1024+ msgstr ""
1025+
1026+ #: ../../library/typing.rst:1008
10241027msgid ""
10251028"Tuple type; ``Tuple[X, Y]`` is the type of a tuple of two items with the "
10261029"first item of type X and the second of type Y."
10271030msgstr ""
10281031"タプル型; ``Tuple[X, Y]`` は、最初の要素の型が X で、2つ目の要素の型が Y であるような、2つの要素を持つタプルの型です。"
10291032
1030- #: ../../library/typing.rst:1003
1033+ #: ../../library/typing.rst:1011
10311034msgid ""
10321035"Example: ``Tuple[T1, T2]`` is a tuple of two elements corresponding to type "
10331036"variables T1 and T2. ``Tuple[int, float, str]`` is a tuple of an int, a "
@@ -1036,7 +1039,7 @@ msgstr ""
10361039"例: ``Tuple[T1, T2]`` は型変数 T1 と T2 に対応する2つの要素を持つタプルです。``Tuple[int, float, "
10371040"str]`` は int と float、 string のタプルです。"
10381041
1039- #: ../../library/typing.rst:1007
1042+ #: ../../library/typing.rst:1015
10401043msgid ""
10411044"To specify a variable-length tuple of homogeneous type, use literal "
10421045"ellipsis, e.g. ``Tuple[int, ...]``. A plain :data:`Tuple` is equivalent to "
@@ -1045,11 +1048,11 @@ msgstr ""
10451048"同じ型の任意の長さのタプルを指定するには ellipsis リテラルを用います。例: ``Tuple[int, ...]``。ただの "
10461049":data:`Tuple` は ``Tuple[Any, ...]`` と等価で、さらに :class:`tuple` と等価です。."
10471050
1048- #: ../../library/typing.rst:1013
1051+ #: ../../library/typing.rst:1021
10491052msgid "Callable type; ``Callable[[int], str]`` is a function of (int) -> str."
10501053msgstr "呼び出し可能型; ``Callable[[int], str]`` は (int) -> str の関数です。"
10511054
1052- #: ../../library/typing.rst:1015
1055+ #: ../../library/typing.rst:1023
10531056msgid ""
10541057"The subscription syntax must always be used with exactly two values: the "
10551058"argument list and the return type. The argument list must be a list of "
@@ -1058,7 +1061,7 @@ msgstr ""
10581061"添字表記は常に2つの値とともに使われなければなりません: 実引数のリストと返り値の型です。\n"
10591062"実引数のリストは型のリストか ellipsis でなければなりません; 返り値の型は単一の型でなければなりません。"
10601063
1061- #: ../../library/typing.rst:1020
1064+ #: ../../library/typing.rst:1028
10621065msgid ""
10631066"There is no syntax to indicate optional or keyword arguments; such function "
10641067"types are rarely used as callback types. ``Callable[..., ReturnType]`` "
@@ -1071,11 +1074,11 @@ msgstr ""
10711074"``Callable[..., ReturnType]`` (リテラルの Ellipsis) は任意の個数の引数をとり ``ReturnType`` を返す型ヒントを与えるために使えます。\n"
10721075"普通の :data:`Callable` は ``Callable[..., Any]`` と同等で、 :class:`collections.abc.Callable` でも同様です。"
10731076
1074- #: ../../library/typing.rst:1030
1077+ #: ../../library/typing.rst:1038
10751078msgid "Special type construct to mark class variables."
10761079msgstr "クラス変数であることを示す特別な型構築子です。"
10771080
1078- #: ../../library/typing.rst:1032
1081+ #: ../../library/typing.rst:1040
10791082msgid ""
10801083"As introduced in :pep:`526`, a variable annotation wrapped in ClassVar "
10811084"indicates that a given attribute is intended to be used as a class variable "
@@ -1084,11 +1087,11 @@ msgstr ""
10841087":pep:`526` で導入された通り、 ClassVar "
10851088"でラップされた変数アノテーションによって、ある属性はクラス変数として使うつもりであり、そのクラスのインスタンスから設定すべきではないということを示せます。使い方は次のようになります::"
10861089
1087- #: ../../library/typing.rst:1040
1090+ #: ../../library/typing.rst:1048
10881091msgid ":data:`ClassVar` accepts only types and cannot be further subscribed."
10891092msgstr ":data:`ClassVar` は型のみを受け入れ、それ以外は受け付けられません。"
10901093
1091- #: ../../library/typing.rst:1042
1094+ #: ../../library/typing.rst:1050
10921095msgid ""
10931096":data:`ClassVar` is not a class itself, and should not be used with "
10941097":func:`isinstance` or :func:`issubclass`. :data:`ClassVar` does not change "
@@ -1099,26 +1102,26 @@ msgstr ""
10991102":data:`ClassVar` は Python の実行時の挙動を変えませんが、サードパーティの型検査器で使えます。\n"
11001103"例えば、型チェッカーは次のコードをエラーとするかもしれません::"
11011104
1102- #: ../../library/typing.rst:1056
1105+ #: ../../library/typing.rst:1064
11031106msgid ""
11041107"``AnyStr`` is a type variable defined as ``AnyStr = TypeVar('AnyStr', str, "
11051108"bytes)``."
11061109msgstr ""
11071110"``AnyStr`` は ``AnyStr = TypeVar('AnyStr', str, bytes)`` として定義される型変数です。"
11081111
1109- #: ../../library/typing.rst:1059
1112+ #: ../../library/typing.rst:1067
11101113msgid ""
11111114"It is meant to be used for functions that may accept any kind of string "
11121115"without allowing different kinds of strings to mix. For example::"
11131116msgstr "他の種類の文字列を混ぜることなく、任意の種類の文字列を許す関数によって使われることを意図しています。"
11141117
1115- #: ../../library/typing.rst:1071
1118+ #: ../../library/typing.rst:1079
11161119msgid ""
11171120"A special constant that is assumed to be ``True`` by 3rd party static type "
11181121"checkers. It is ``False`` at runtime. Usage::"
11191122msgstr "サードパーティーの静的型検査器が ``True`` と仮定する特別な定数です。 実行時には ``False`` になります。使用例::"
11201123
1121- #: ../../library/typing.rst:1080
1124+ #: ../../library/typing.rst:1088
11221125msgid ""
11231126"Note that the first type annotation must be enclosed in quotes, making it a "
11241127"\" forward reference\" , to hide the ``expensive_mod`` reference from the "
0 commit comments