8
8
msgstr ""
9
9
"Project-Id-Version :Python 3.6\n "
10
10
"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 "
12
12
"PO-Revision-Date :YEAR-MO-DA HO:MI+ZONE\n "
13
13
"Last-Translator :tomo🐧, 2018\n "
14
14
"Language-Team :Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -1013,23 +1013,26 @@ msgstr "``Optional[X]`` は ``Union[X, None]`` と同値です。"
1013
1013
#: ../../library/typing.rst:993
1014
1014
msgid ""
1015
1015
"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::"
1020
1019
msgstr ""
1021
- "これがデフォルト値のある引数であるオプショナル引数と同じ概念ではないと言うことに注意してください。デフォルト値のあるオプショナル引数ではその型アノテーションで"
1022
- " ``Optional`` を使う必要はありません (ただしデフォルトでは ``None`` と推論されます)。必須の引数は明示的な値として "
1023
- "``None`` が許されるのであれば ``Optional`` 型も持つことが出来ます。"
1024
1020
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
1026
1029
msgid ""
1027
1030
"Tuple type; ``Tuple[X, Y]`` is the type of a tuple of two items with the "
1028
1031
"first item of type X and the second of type Y."
1029
1032
msgstr ""
1030
1033
"タプル型; ``Tuple[X, Y]`` は、最初の要素の型が X で、2つ目の要素の型が Y であるような、2つの要素を持つタプルの型です。"
1031
1034
1032
- #: ../../library/typing.rst:1005
1035
+ #: ../../library/typing.rst:1013
1033
1036
msgid ""
1034
1037
"Example: ``Tuple[T1, T2]`` is a tuple of two elements corresponding to type "
1035
1038
"variables T1 and T2. ``Tuple[int, float, str]`` is a tuple of an int, a "
@@ -1038,7 +1041,7 @@ msgstr ""
1038
1041
"例: ``Tuple[T1, T2]`` は型変数 T1 と T2 に対応する2つの要素を持つタプルです。``Tuple[int, float, "
1039
1042
"str]`` は int と float、 string のタプルです。"
1040
1043
1041
- #: ../../library/typing.rst:1009
1044
+ #: ../../library/typing.rst:1017
1042
1045
msgid ""
1043
1046
"To specify a variable-length tuple of homogeneous type, use literal "
1044
1047
"ellipsis, e.g. ``Tuple[int, ...]``. A plain :data:`Tuple` is equivalent to "
@@ -1047,11 +1050,11 @@ msgstr ""
1047
1050
"同じ型の任意の長さのタプルを指定するには ellipsis リテラルを用います。例: ``Tuple[int, ...]``。ただの "
1048
1051
":data:`Tuple` は ``Tuple[Any, ...]`` と等価で、さらに :class:`tuple` と等価です。."
1049
1052
1050
- #: ../../library/typing.rst:1015
1053
+ #: ../../library/typing.rst:1023
1051
1054
msgid "Callable type; ``Callable[[int], str]`` is a function of (int) -> str."
1052
1055
msgstr "呼び出し可能型; ``Callable[[int], str]`` は (int) -> str の関数です。"
1053
1056
1054
- #: ../../library/typing.rst:1017
1057
+ #: ../../library/typing.rst:1025
1055
1058
msgid ""
1056
1059
"The subscription syntax must always be used with exactly two values: the "
1057
1060
"argument list and the return type. The argument list must be a list of "
@@ -1060,7 +1063,7 @@ msgstr ""
1060
1063
"添字表記は常に2つの値とともに使われなければなりません: 実引数のリストと返り値の型です。\n"
1061
1064
"実引数のリストは型のリストか ellipsis でなければなりません; 返り値の型は単一の型でなければなりません。"
1062
1065
1063
- #: ../../library/typing.rst:1022
1066
+ #: ../../library/typing.rst:1030
1064
1067
msgid ""
1065
1068
"There is no syntax to indicate optional or keyword arguments; such function "
1066
1069
"types are rarely used as callback types. ``Callable[..., ReturnType]`` "
@@ -1073,11 +1076,11 @@ msgstr ""
1073
1076
"``Callable[..., ReturnType]`` (リテラルの Ellipsis) は任意の個数の引数をとり ``ReturnType`` を返す型ヒントを与えるために使えます。\n"
1074
1077
"普通の :data:`Callable` は ``Callable[..., Any]`` と同等で、 :class:`collections.abc.Callable` でも同様です。"
1075
1078
1076
- #: ../../library/typing.rst:1032
1079
+ #: ../../library/typing.rst:1040
1077
1080
msgid "Special type construct to mark class variables."
1078
1081
msgstr "クラス変数であることを示す特別な型構築子です。"
1079
1082
1080
- #: ../../library/typing.rst:1034
1083
+ #: ../../library/typing.rst:1042
1081
1084
msgid ""
1082
1085
"As introduced in :pep:`526`, a variable annotation wrapped in ClassVar "
1083
1086
"indicates that a given attribute is intended to be used as a class variable "
@@ -1086,11 +1089,11 @@ msgstr ""
1086
1089
":pep:`526` で導入された通り、 ClassVar "
1087
1090
"でラップされた変数アノテーションによって、ある属性はクラス変数として使うつもりであり、そのクラスのインスタンスから設定すべきではないということを示せます。使い方は次のようになります::"
1088
1091
1089
- #: ../../library/typing.rst:1042
1092
+ #: ../../library/typing.rst:1050
1090
1093
msgid ":data:`ClassVar` accepts only types and cannot be further subscribed."
1091
1094
msgstr ":data:`ClassVar` は型のみを受け入れ、それ以外は受け付けられません。"
1092
1095
1093
- #: ../../library/typing.rst:1044
1096
+ #: ../../library/typing.rst:1052
1094
1097
msgid ""
1095
1098
":data:`ClassVar` is not a class itself, and should not be used with "
1096
1099
":func:`isinstance` or :func:`issubclass`. :data:`ClassVar` does not change "
@@ -1101,26 +1104,26 @@ msgstr ""
1101
1104
":data:`ClassVar` は Python の実行時の挙動を変えませんが、サードパーティの型検査器で使えます。\n"
1102
1105
"例えば、型チェッカーは次のコードをエラーとするかもしれません::"
1103
1106
1104
- #: ../../library/typing.rst:1058
1107
+ #: ../../library/typing.rst:1066
1105
1108
msgid ""
1106
1109
"``AnyStr`` is a type variable defined as ``AnyStr = TypeVar('AnyStr', str, "
1107
1110
"bytes)``."
1108
1111
msgstr ""
1109
1112
"``AnyStr`` は ``AnyStr = TypeVar('AnyStr', str, bytes)`` として定義される型変数です。"
1110
1113
1111
- #: ../../library/typing.rst:1061
1114
+ #: ../../library/typing.rst:1069
1112
1115
msgid ""
1113
1116
"It is meant to be used for functions that may accept any kind of string "
1114
1117
"without allowing different kinds of strings to mix. For example::"
1115
1118
msgstr "他の種類の文字列を混ぜることなく、任意の種類の文字列を許す関数によって使われることを意図しています。"
1116
1119
1117
- #: ../../library/typing.rst:1073
1120
+ #: ../../library/typing.rst:1081
1118
1121
msgid ""
1119
1122
"A special constant that is assumed to be ``True`` by 3rd party static type "
1120
1123
"checkers. It is ``False`` at runtime. Usage::"
1121
1124
msgstr "サードパーティーの静的型検査器が ``True`` と仮定する特別な定数です。 実行時には ``False`` になります。使用例::"
1122
1125
1123
- #: ../../library/typing.rst:1082
1126
+ #: ../../library/typing.rst:1090
1124
1127
msgid ""
1125
1128
"Note that the first type annotation must be enclosed in quotes, making it a "
1126
1129
"\" forward reference\" , to hide the ``expensive_mod`` reference from the "