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