88msgstr ""
99"Project-Id-Version : Python 3.6\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2018-05-26 13:24 +0900\n "
11+ "POT-Creation-Date : 2018-08-06 14:05 +0900\n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"Last-Translator : tomo🐧, 2018\n "
1414"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -1013,23 +1013,26 @@ msgstr "``Optional[X]`` は ``Union[X, None]`` と同値です。"
10131013#: ../../library/typing.rst:993
10141014msgid ""
10151015"Note that this is not the same concept as an optional argument, which is one"
1016- " that has a default. An optional argument with a default needn't use the "
1017- "``Optional`` qualifier on its type annotation (although it is inferred if "
1018- "the default is ``None``). A mandatory argument may still have an "
1019- "``Optional`` type if an explicit value of ``None`` is allowed."
1016+ " that has a default. An optional argument with a default does not require "
1017+ "the ``Optional`` qualifier on its type annotation just because it is "
1018+ "optional. For example::"
10201019msgstr ""
1021- "これがデフォルト値のある引数であるオプショナル引数と同じ概念ではないと言うことに注意してください。デフォルト値のあるオプショナル引数ではその型アノテーションで"
1022- " ``Optional`` を使う必要はありません (ただしデフォルトでは ``None`` と推論されます)。必須の引数は明示的な値として "
1023- "``None`` が許されるのであれば ``Optional`` 型も持つことが出来ます。"
10241020
1025- #: ../../library/typing.rst:1002
1021+ #: ../../library/typing.rst:1001
1022+ msgid ""
1023+ "On the other hand, if an explicit value of ``None`` is allowed, the use of "
1024+ "``Optional`` is appropriate, whether the argument is optional or not. For "
1025+ "example::"
1026+ msgstr ""
1027+
1028+ #: ../../library/typing.rst:1010
10261029msgid ""
10271030"Tuple type; ``Tuple[X, Y]`` is the type of a tuple of two items with the "
10281031"first item of type X and the second of type Y."
10291032msgstr ""
10301033"タプル型; ``Tuple[X, Y]`` は、最初の要素の型が X で、2つ目の要素の型が Y であるような、2つの要素を持つタプルの型です。"
10311034
1032- #: ../../library/typing.rst:1005
1035+ #: ../../library/typing.rst:1013
10331036msgid ""
10341037"Example: ``Tuple[T1, T2]`` is a tuple of two elements corresponding to type "
10351038"variables T1 and T2. ``Tuple[int, float, str]`` is a tuple of an int, a "
@@ -1038,7 +1041,7 @@ msgstr ""
10381041"例: ``Tuple[T1, T2]`` は型変数 T1 と T2 に対応する2つの要素を持つタプルです。``Tuple[int, float, "
10391042"str]`` は int と float、 string のタプルです。"
10401043
1041- #: ../../library/typing.rst:1009
1044+ #: ../../library/typing.rst:1017
10421045msgid ""
10431046"To specify a variable-length tuple of homogeneous type, use literal "
10441047"ellipsis, e.g. ``Tuple[int, ...]``. A plain :data:`Tuple` is equivalent to "
@@ -1047,11 +1050,11 @@ msgstr ""
10471050"同じ型の任意の長さのタプルを指定するには ellipsis リテラルを用います。例: ``Tuple[int, ...]``。ただの "
10481051":data:`Tuple` は ``Tuple[Any, ...]`` と等価で、さらに :class:`tuple` と等価です。."
10491052
1050- #: ../../library/typing.rst:1015
1053+ #: ../../library/typing.rst:1023
10511054msgid "Callable type; ``Callable[[int], str]`` is a function of (int) -> str."
10521055msgstr "呼び出し可能型; ``Callable[[int], str]`` は (int) -> str の関数です。"
10531056
1054- #: ../../library/typing.rst:1017
1057+ #: ../../library/typing.rst:1025
10551058msgid ""
10561059"The subscription syntax must always be used with exactly two values: the "
10571060"argument list and the return type. The argument list must be a list of "
@@ -1060,7 +1063,7 @@ msgstr ""
10601063"添字表記は常に2つの値とともに使われなければなりません: 実引数のリストと返り値の型です。\n"
10611064"実引数のリストは型のリストか ellipsis でなければなりません; 返り値の型は単一の型でなければなりません。"
10621065
1063- #: ../../library/typing.rst:1022
1066+ #: ../../library/typing.rst:1030
10641067msgid ""
10651068"There is no syntax to indicate optional or keyword arguments; such function "
10661069"types are rarely used as callback types. ``Callable[..., ReturnType]`` "
@@ -1073,11 +1076,11 @@ msgstr ""
10731076"``Callable[..., ReturnType]`` (リテラルの Ellipsis) は任意の個数の引数をとり ``ReturnType`` を返す型ヒントを与えるために使えます。\n"
10741077"普通の :data:`Callable` は ``Callable[..., Any]`` と同等で、 :class:`collections.abc.Callable` でも同様です。"
10751078
1076- #: ../../library/typing.rst:1032
1079+ #: ../../library/typing.rst:1040
10771080msgid "Special type construct to mark class variables."
10781081msgstr "クラス変数であることを示す特別な型構築子です。"
10791082
1080- #: ../../library/typing.rst:1034
1083+ #: ../../library/typing.rst:1042
10811084msgid ""
10821085"As introduced in :pep:`526`, a variable annotation wrapped in ClassVar "
10831086"indicates that a given attribute is intended to be used as a class variable "
@@ -1086,11 +1089,11 @@ msgstr ""
10861089":pep:`526` で導入された通り、 ClassVar "
10871090"でラップされた変数アノテーションによって、ある属性はクラス変数として使うつもりであり、そのクラスのインスタンスから設定すべきではないということを示せます。使い方は次のようになります::"
10881091
1089- #: ../../library/typing.rst:1042
1092+ #: ../../library/typing.rst:1050
10901093msgid ":data:`ClassVar` accepts only types and cannot be further subscribed."
10911094msgstr ":data:`ClassVar` は型のみを受け入れ、それ以外は受け付けられません。"
10921095
1093- #: ../../library/typing.rst:1044
1096+ #: ../../library/typing.rst:1052
10941097msgid ""
10951098":data:`ClassVar` is not a class itself, and should not be used with "
10961099":func:`isinstance` or :func:`issubclass`. :data:`ClassVar` does not change "
@@ -1101,26 +1104,26 @@ msgstr ""
11011104":data:`ClassVar` は Python の実行時の挙動を変えませんが、サードパーティの型検査器で使えます。\n"
11021105"例えば、型チェッカーは次のコードをエラーとするかもしれません::"
11031106
1104- #: ../../library/typing.rst:1058
1107+ #: ../../library/typing.rst:1066
11051108msgid ""
11061109"``AnyStr`` is a type variable defined as ``AnyStr = TypeVar('AnyStr', str, "
11071110"bytes)``."
11081111msgstr ""
11091112"``AnyStr`` は ``AnyStr = TypeVar('AnyStr', str, bytes)`` として定義される型変数です。"
11101113
1111- #: ../../library/typing.rst:1061
1114+ #: ../../library/typing.rst:1069
11121115msgid ""
11131116"It is meant to be used for functions that may accept any kind of string "
11141117"without allowing different kinds of strings to mix. For example::"
11151118msgstr "他の種類の文字列を混ぜることなく、任意の種類の文字列を許す関数によって使われることを意図しています。"
11161119
1117- #: ../../library/typing.rst:1073
1120+ #: ../../library/typing.rst:1081
11181121msgid ""
11191122"A special constant that is assumed to be ``True`` by 3rd party static type "
11201123"checkers. It is ``False`` at runtime. Usage::"
11211124msgstr "サードパーティーの静的型検査器が ``True`` と仮定する特別な定数です。 実行時には ``False`` になります。使用例::"
11221125
1123- #: ../../library/typing.rst:1082
1126+ #: ../../library/typing.rst:1090
11241127msgid ""
11251128"Note that the first type annotation must be enclosed in quotes, making it a "
11261129"\" forward reference\" , to hide the ``expensive_mod`` reference from the "
0 commit comments