@@ -17,7 +17,7 @@ msgid ""
1717msgstr ""
1818"Project-Id-Version : Python 3.7\n "
1919"Report-Msgid-Bugs-To : \n "
20- "POT-Creation-Date : 2019-06-19 11:40+0900 \n "
20+ "POT-Creation-Date : 2019-08-14 03:13+0000 \n "
2121"PO-Revision-Date : 2017-02-16 23:32+0000\n "
2222"
Last-Translator :
ppcfish <[email protected] >, 2019\n "
2323"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -968,35 +968,36 @@ msgstr ""
968968#: ../../library/typing.rst:1058
969969msgid ""
970970"Tuple type; ``Tuple[X, Y]`` is the type of a tuple of two items with the "
971- "first item of type X and the second of type Y."
971+ "first item of type X and the second of type Y. The type of the empty tuple "
972+ "can be written as ``Tuple[()]``."
972973msgstr ""
973974
974- #: ../../library/typing.rst:1061
975+ #: ../../library/typing.rst:1062
975976msgid ""
976977"Example: ``Tuple[T1, T2]`` is a tuple of two elements corresponding to type "
977978"variables T1 and T2. ``Tuple[int, float, str]`` is a tuple of an int, a "
978979"float and a string."
979980msgstr ""
980981
981- #: ../../library/typing.rst:1065
982+ #: ../../library/typing.rst:1066
982983msgid ""
983984"To specify a variable-length tuple of homogeneous type, use literal "
984985"ellipsis, e.g. ``Tuple[int, ...]``. A plain :data:`Tuple` is equivalent to "
985986"``Tuple[Any, ...]``, and in turn to :class:`tuple`."
986987msgstr ""
987988
988- #: ../../library/typing.rst:1071
989+ #: ../../library/typing.rst:1072
989990msgid "Callable type; ``Callable[[int], str]`` is a function of (int) -> str."
990991msgstr ""
991992
992- #: ../../library/typing.rst:1073
993+ #: ../../library/typing.rst:1074
993994msgid ""
994995"The subscription syntax must always be used with exactly two values: the "
995996"argument list and the return type. The argument list must be a list of "
996997"types or an ellipsis; the return type must be a single type."
997998msgstr ""
998999
999- #: ../../library/typing.rst:1078
1000+ #: ../../library/typing.rst:1079
10001001msgid ""
10011002"There is no syntax to indicate optional or keyword arguments; such function "
10021003"types are rarely used as callback types. ``Callable[..., ReturnType]`` "
@@ -1006,48 +1007,48 @@ msgid ""
10061007":class:`collections.abc.Callable`."
10071008msgstr ""
10081009
1009- #: ../../library/typing.rst:1088
1010+ #: ../../library/typing.rst:1089
10101011msgid "Special type construct to mark class variables."
10111012msgstr ""
10121013
1013- #: ../../library/typing.rst:1090
1014+ #: ../../library/typing.rst:1091
10141015msgid ""
10151016"As introduced in :pep:`526`, a variable annotation wrapped in ClassVar "
10161017"indicates that a given attribute is intended to be used as a class variable "
10171018"and should not be set on instances of that class. Usage::"
10181019msgstr ""
10191020
1020- #: ../../library/typing.rst:1098
1021+ #: ../../library/typing.rst:1099
10211022msgid ":data:`ClassVar` accepts only types and cannot be further subscribed."
10221023msgstr ""
10231024
1024- #: ../../library/typing.rst:1100
1025+ #: ../../library/typing.rst:1101
10251026msgid ""
10261027":data:`ClassVar` is not a class itself, and should not be used with "
10271028":func:`isinstance` or :func:`issubclass`. :data:`ClassVar` does not change "
10281029"Python runtime behavior, but it can be used by third-party type checkers. "
10291030"For example, a type checker might flag the following code as an error::"
10301031msgstr ""
10311032
1032- #: ../../library/typing.rst:1114
1033+ #: ../../library/typing.rst:1115
10331034msgid ""
10341035"``AnyStr`` is a type variable defined as ``AnyStr = TypeVar('AnyStr', str, "
10351036"bytes)``."
10361037msgstr ""
10371038
1038- #: ../../library/typing.rst:1117
1039+ #: ../../library/typing.rst:1118
10391040msgid ""
10401041"It is meant to be used for functions that may accept any kind of string "
10411042"without allowing different kinds of strings to mix. For example::"
10421043msgstr ""
10431044
1044- #: ../../library/typing.rst:1129
1045+ #: ../../library/typing.rst:1130
10451046msgid ""
10461047"A special constant that is assumed to be ``True`` by 3rd party static type "
10471048"checkers. It is ``False`` at runtime. Usage::"
10481049msgstr ""
10491050
1050- #: ../../library/typing.rst:1138
1051+ #: ../../library/typing.rst:1139
10511052msgid ""
10521053"Note that the first type annotation must be enclosed in quotes, making it a "
10531054"\" forward reference\" , to hide the ``expensive_mod`` reference from the "
0 commit comments