1111# rpish yao <[email protected] >, 20201212# ww song <[email protected] >, 2020131314- # Freesand Leo <[email protected] >, 20201514# Siyuan Xu <[email protected] >, 20201615# jaystone776 <[email protected] >, 202016+ # Freesand Leo <[email protected] >, 20201717#
1818#, fuzzy
1919msgid ""
@@ -22,7 +22,7 @@ msgstr ""
2222"Report-Msgid-Bugs-To : \n "
2323"POT-Creation-Date : 2020-10-12 15:22+0000\n "
2424"PO-Revision-Date : 2020-05-30 12:12+0000\n "
25- "Last-Translator : jaystone776 <1732865113@qq .com>, 2020\n "
25+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2020\n "
2626"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2727"MIME-Version : 1.0\n "
2828"Content-Type : text/plain; charset=UTF-8\n "
@@ -43,7 +43,7 @@ msgid ""
4343"The Python runtime does not enforce function and variable type annotations. "
4444"They can be used by third party tools such as type checkers, IDEs, linters, "
4545"etc."
46- msgstr " Python 运行时并不强制标注函数和变量类型。类型标注可被用于第三方工具,比如类型检查器、集成开发环境、静态检查器等。"
46+ msgstr "Python 运行时并不强制标注函数和变量类型。 类型标注可被用于第三方工具,比如类型检查器、集成开发环境、静态检查器等。"
4747
4848#: ../../library/typing.rst:19
4949msgid ""
@@ -581,7 +581,7 @@ msgstr ""
581581msgid ""
582582"An ABC with one abstract method ``__abs__`` that is covariant in its return "
583583"type."
584- msgstr ""
584+ msgstr "含抽象方法 ``__abs__`` 的抽象基类(ABC)是其返回类型里的协变量。 "
585585
586586#: ../../library/typing.rst:621
587587msgid ""
@@ -639,13 +639,13 @@ msgstr ":class:`collections.abc.ByteString` 的泛型版本。"
639639msgid ""
640640"This type represents the types :class:`bytes`, :class:`bytearray`, and "
641641":class:`memoryview` of byte sequences."
642- msgstr ""
642+ msgstr "该类型代表了 :class:`bytes`、:class:`bytearray`、:class:`memoryview` 等字节序列类型。 "
643643
644644#: ../../library/typing.rst:677
645645msgid ""
646646"As a shorthand for this type, :class:`bytes` can be used to annotate "
647647"arguments of any of the types mentioned above."
648- msgstr ""
648+ msgstr "作为该类型的简称,:class:`bytes` 可用于标注上述任意类型的参数。 "
649649
650650#: ../../library/typing.rst:682
651651msgid "A generic version of :class:`collections.deque`."
@@ -657,6 +657,8 @@ msgid ""
657657"annotate arguments it is preferred to use an abstract collection type such "
658658"as :class:`Sequence` or :class:`Iterable`."
659659msgstr ""
660+ ":class:`list` 的泛型版本。适用于注解返回类型。注解参数时,最好使用 :class:`Sequence` 或 "
661+ ":class:`Iterable` 等抽象容器类型。"
660662
661663#: ../../library/typing.rst:694
662664msgid "This type may be used as follows::"
@@ -668,10 +670,12 @@ msgid ""
668670"return types. To annotate arguments it is preferred to use an abstract "
669671"collection type such as :class:`AbstractSet`."
670672msgstr ""
673+ ":class:`builtins.set <set>` 的泛型版本。适用于注解返回类型。注解参数时,最好使用 :class:`AbstractSet` "
674+ "等抽象容器类型。"
671675
672676#: ../../library/typing.rst:712
673677msgid "A generic version of :class:`builtins.frozenset <frozenset>`."
674- msgstr ""
678+ msgstr ":class:`builtins.frozenset <frozenset>` 的泛型版本。 "
675679
676680#: ../../library/typing.rst:716
677681msgid "A generic version of :class:`collections.abc.MappingView`."
@@ -800,19 +804,23 @@ msgid ""
800804"compatible path for Python 2 code: in Python 2, ``Text`` is an alias for "
801805"``unicode``."
802806msgstr ""
807+ "``Text`` 是 ``str`` 的别名。提供了对 Python 2 代码的向下兼容:Python 2 中,``Text`` "
808+ "是``unicode`` 的别名。"
803809
804810#: ../../library/typing.rst:884
805811msgid ""
806812"Use ``Text`` to indicate that a value must contain a unicode string in a "
807813"manner that is compatible with both Python 2 and Python 3::"
808- msgstr ""
814+ msgstr "用 "
809815
810816#: ../../library/typing.rst:896
811817msgid ""
812818"Generic type ``IO[AnyStr]`` and its subclasses ``TextIO(IO[str])`` and "
813819"``BinaryIO(IO[bytes])`` represent the types of I/O streams such as returned "
814820"by :func:`open`."
815821msgstr ""
822+ "泛型类型 ``IO[AnyStr]`` 及其子类 ``TextIO(IO[str])`` 与 ``BinaryIO(IO[bytes])`` 表示 "
823+ "I/O 流的类型,例如 :func:`open` 所返回的对象。"
816824
817825#: ../../library/typing.rst:904
818826msgid ""
@@ -1072,7 +1080,7 @@ msgstr ""
10721080msgid ""
10731081"**Warning:** this will check only the presence of the required methods, not "
10741082"their type signatures!"
1075- msgstr ""
1083+ msgstr "**警告:** 这将只检查所需方法是否存在,而不检查其类型签名! "
10761084
10771085#: ../../library/typing.rst:1185
10781086msgid "Special type indicating an unconstrained type."
0 commit comments