44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
7- # Freesand Leo <[email protected] >, 202387# Rafael Fontenelle <[email protected] >, 20238+ 9+ # Freesand Leo <[email protected] >, 2023910#
1011#, fuzzy
1112msgid ""
1213msgstr ""
1314"Project-Id-Version : Python 3.11\n "
1415"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2023-08-18 14:42 +0000\n "
16+ "POT-Creation-Date : 2023-08-25 22:59 +0000\n "
1617"PO-Revision-Date : 2023-05-24 02:21+0000\n "
17- "Last-Translator : Rafael Fontenelle <rffontenelle@gmail .com>, 2023\n "
18+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2023\n "
1819"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1920"MIME-Version : 1.0\n "
2021"Content-Type : text/plain; charset=UTF-8\n "
@@ -492,7 +493,7 @@ msgstr ""
492493msgid ""
493494"For most containers in Python, the typing system assumes that all elements "
494495"in the container will be of the same type. For example::"
495- msgstr ""
496+ msgstr "对于 Python 中的大多数容器,类型系统假定容器中的所有元素都是相同类型的。例如: "
496497
497498#: ../../library/typing.rst:390
498499msgid ""
@@ -502,6 +503,8 @@ msgid ""
502503" indicates the type of the keys, and the second indicates the type of the "
503504"values."
504505msgstr ""
506+ ":class:`list` 只接受一个类型参数,因此类型检查程序会对上述对 ``y`` 的赋值报错。同样, "
507+ ":class:`~collections.abc.Mapping` 只接受两个类型参数:第一个参数表示键的类型,第二个参数表示值的类型。 "
505508
506509#: ../../library/typing.rst:396
507510msgid ""
@@ -510,6 +513,8 @@ msgid ""
510513"For this reason, tuples are special-cased in Python's typing system. "
511514":class:`tuple` accepts *any number* of type arguments::"
512515msgstr ""
516+ "然而,与大多数其它 Python 容器不同的是,在 Python 惯用代码中,元组中的元素并不都是相同类型的,这种情况很常见。因此,在 Python "
517+ "的类型系统中,元组被特殊化了。:class:`tuple` 接受*任意数量*的类型参数:"
513518
514519#: ../../library/typing.rst:412
515520msgid ""
@@ -518,10 +523,12 @@ msgid ""
518523" use ``tuple[()]``. Using plain ``tuple`` as an annotation is equivalent to "
519524"using ``tuple[Any, ...]``::"
520525msgstr ""
526+ "要表示一个 *任意* 长度的元组,并使其中所有元素的类型都为``T`` ,请使用``tuple[T, ...]`` "
527+ "。要表示空元组,请使用``tuple[()]`` 。使用``tuple`` 作为注释等同于使用``tuple[Any, ...]``:"
521528
522529#: ../../library/typing.rst:435
523530msgid "The type of class objects"
524- msgstr ""
531+ msgstr "类对象 的类型 "
525532
526533#: ../../library/typing.rst:437
527534msgid ""
@@ -583,7 +590,7 @@ msgstr ":class:`Generic` 类型变量的参数应各不相同。下列代码就
583590
584591#: ../../library/typing.rst:545
585592msgid "You can use multiple inheritance with :class:`Generic`::"
586- msgstr ""
593+ msgstr "您可以通过 :class:`Generic` 来使用多重继承: "
587594
588595#: ../../library/typing.rst:555
589596msgid ""
@@ -603,7 +610,7 @@ msgstr ""
603610
604611#: ../../library/typing.rst:578
605612msgid "User-defined generic type aliases are also supported. Examples::"
606- msgstr ""
613+ msgstr "用户定义的通用类型别名也同样被支持。示例: "
607614
608615#: ../../library/typing.rst:595
609616msgid ":class:`Generic` no longer has a custom metaclass."
@@ -770,7 +777,7 @@ msgstr "模块内容"
770777msgid ""
771778"The ``typing`` module defines the following classes, functions and "
772779"decorators."
773- msgstr ""
780+ msgstr "``typing`` 模块定义了以下类、函数和装饰器。 "
774781
775782#: ../../library/typing.rst:764
776783msgid "Special typing primitives"
@@ -811,7 +818,7 @@ msgstr ""
811818
812819#: ../../library/typing.rst:788
813820msgid "Definition::"
814- msgstr ""
821+ msgstr "定义: "
815822
816823#: ../../library/typing.rst:792
817824msgid ""
0 commit comments