Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2e79ec

Browse files
committed
[po] auto sync bot
1 parent a05bda6 commit a2e79ec

2 files changed

Lines changed: 20 additions & 17 deletions

File tree

extending/newtypes_tutorial.po

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,18 @@ msgid ""
163163
" fields will be filled with zeros by the C compiler, and it's common "
164164
"practice to not specify them explicitly unless you need them."
165165
msgstr ""
166+
"实际定义的 :c:type:`PyTypeObject` 在 :file:`object.h` 中有比如上定义更多的 :ref:`fields` "
167+
"。剩余的字段会由C编译器用0填充,这通常没啥问题,除非你明确要使用这些字段。"
166168

167169
#: ../../extending/newtypes_tutorial.rst:109
168170
msgid "We're going to pick it apart, one field at a time::"
169-
msgstr ""
171+
msgstr "我们先挑选一部分,每次一个字段::"
170172

171173
#: ../../extending/newtypes_tutorial.rst:113
172174
msgid ""
173175
"This line is mandatory boilerplate to initialize the ``ob_base`` field "
174176
"mentioned above. ::"
175-
msgstr ""
177+
msgstr "这一行是强制的样板,用以初始化如上提到的 ``ob_base`` 字段::"
176178

177179
#: ../../extending/newtypes_tutorial.rst:118
178180
msgid ""

library/typing.po

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ msgid ""
1717
msgstr ""
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
969969
msgid ""
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[()]``."
972973
msgstr ""
973974

974-
#: ../../library/typing.rst:1061
975+
#: ../../library/typing.rst:1062
975976
msgid ""
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."
979980
msgstr ""
980981

981-
#: ../../library/typing.rst:1065
982+
#: ../../library/typing.rst:1066
982983
msgid ""
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`."
986987
msgstr ""
987988

988-
#: ../../library/typing.rst:1071
989+
#: ../../library/typing.rst:1072
989990
msgid "Callable type; ``Callable[[int], str]`` is a function of (int) -> str."
990991
msgstr ""
991992

992-
#: ../../library/typing.rst:1073
993+
#: ../../library/typing.rst:1074
993994
msgid ""
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."
997998
msgstr ""
998999

999-
#: ../../library/typing.rst:1078
1000+
#: ../../library/typing.rst:1079
10001001
msgid ""
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`."
10071008
msgstr ""
10081009

1009-
#: ../../library/typing.rst:1088
1010+
#: ../../library/typing.rst:1089
10101011
msgid "Special type construct to mark class variables."
10111012
msgstr ""
10121013

1013-
#: ../../library/typing.rst:1090
1014+
#: ../../library/typing.rst:1091
10141015
msgid ""
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::"
10181019
msgstr ""
10191020

1020-
#: ../../library/typing.rst:1098
1021+
#: ../../library/typing.rst:1099
10211022
msgid ":data:`ClassVar` accepts only types and cannot be further subscribed."
10221023
msgstr ""
10231024

1024-
#: ../../library/typing.rst:1100
1025+
#: ../../library/typing.rst:1101
10251026
msgid ""
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::"
10301031
msgstr ""
10311032

1032-
#: ../../library/typing.rst:1114
1033+
#: ../../library/typing.rst:1115
10331034
msgid ""
10341035
"``AnyStr`` is a type variable defined as ``AnyStr = TypeVar('AnyStr', str, "
10351036
"bytes)``."
10361037
msgstr ""
10371038

1038-
#: ../../library/typing.rst:1117
1039+
#: ../../library/typing.rst:1118
10391040
msgid ""
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::"
10421043
msgstr ""
10431044

1044-
#: ../../library/typing.rst:1129
1045+
#: ../../library/typing.rst:1130
10451046
msgid ""
10461047
"A special constant that is assumed to be ``True`` by 3rd party static type "
10471048
"checkers. It is ``False`` at runtime. Usage::"
10481049
msgstr ""
10491050

1050-
#: ../../library/typing.rst:1138
1051+
#: ../../library/typing.rst:1139
10511052
msgid ""
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

Comments
 (0)