@@ -833,6 +833,7 @@ msgid ""
833833"for :pep:`484`\\ 's ``Callable`` have been added to the :mod:`typing` "
834834"module."
835835msgstr ""
836+ "在 :mod:`typing` 模块中新增了两个选项以改进用于 :pep:`484` 的 ``Callable`` 提供给静态类型检查器的信息。"
836837
837838#: ../../whatsnew/3.10.rst:760
838839msgid ""
@@ -842,6 +843,8 @@ msgid ""
842843"can be found in :class:`typing.ParamSpec`. Previously, there was no easy way"
843844" to type annotate dependency of parameter types in such a precise manner."
844845msgstr ""
846+ "第一个选项是形参规格变量。 它们被用来将一个可调用对象的形参类型转发给另一个可调用对象 —— 这种模式常见于高阶函数和装饰器。 使用示例可在 "
847+ ":class:`typing.ParamSpec` 中找到。 在之前版本中,没有一种简单办法能以如此精确的方式对形参类型的依赖性进行类型标注。"
845848
846849#: ../../whatsnew/3.10.rst:766
847850msgid ""
@@ -850,23 +853,30 @@ msgid ""
850853" order callable which adds or removes parameters of another callable. "
851854"Examples of usage can be found in :class:`typing.Concatenate`."
852855msgstr ""
856+ "第二个选项是新的 ``Concatenate`` 运算符。 它与形参规格变量一起使用以便对增加或移除了其他可调用对象的高阶可调用对象进行类型标注。 "
857+ "使用示例可以在 :class:`typing.Concatenate` 中找到。"
853858
854859#: ../../whatsnew/3.10.rst:771
855860msgid ""
856861"See :class:`typing.Callable`, :class:`typing.ParamSpec`, "
857862":class:`typing.Concatenate`, :class:`typing.ParamSpecArgs`, "
858863":class:`typing.ParamSpecKwargs`, and :pep:`612` for more details."
859864msgstr ""
865+ "请参阅 :class:`typing.Callable`, :class:`typing.ParamSpec`, "
866+ ":class:`typing.Concatenate`, :class:`typing.ParamSpecArgs`, "
867+ ":class:`typing.ParamSpecKwargs` 和 :pep:`612` 来了解更多细节。"
860868
861869#: ../../whatsnew/3.10.rst:775
862870msgid ""
863871"(Contributed by Ken Jin in :issue:`41559`, with minor enhancements by Jelle "
864872"Zijlstra in :issue:`43783`. PEP written by Mark Mendoza.)"
865873msgstr ""
874+ "(由 Ken Jin 在 :issue:`41559` 中贡献,并由 Jelle Zijlstra 在 :issue:`43783` 中加以少量改进。 "
875+ "PEP 由 Mark Mendoza 撰写。)"
866876
867877#: ../../whatsnew/3.10.rst:780
868878msgid "PEP 613: TypeAlias"
869- msgstr ""
879+ msgstr "PEP 613: 类型别名 "
870880
871881#: ../../whatsnew/3.10.rst:782
872882msgid ""
@@ -876,20 +886,22 @@ msgid ""
876886" assignments, especially when forward references or invalid types were "
877887"involved. Compare::"
878888msgstr ""
889+ ":pep:`484` 引入了类型别名的概念,只要求它们是不带标注的最高层级赋值。 "
890+ "这种简单性有时会使得类型检查器难以区分类型别名和普通赋值,特别是当涉及到前向引用或无效类型的时候。 例如在比较::"
879891
880892#: ../../whatsnew/3.10.rst:790
881893msgid ""
882894"Now the :mod:`typing` module has a special value :data:`TypeAlias` which "
883895"lets you declare type aliases more explicitly::"
884- msgstr ""
896+ msgstr "现在 :mod:`typing` 模块具有一个特殊值 :data:`TypeAlias` 可让你更明确地声明类型别名:: "
885897
886898#: ../../whatsnew/3.10.rst:796
887899msgid "See :pep:`613` for more details."
888- msgstr ""
900+ msgstr "请参阅 :pep:`613` 了解详情。 "
889901
890902#: ../../whatsnew/3.10.rst:798
891903msgid "(Contributed by Mikhail Golubev in :issue:`41923`.)"
892- msgstr ""
904+ msgstr "(由 Mikhail Golubev 在 :issue:`41923` 中贡献。) "
893905
894906#: ../../whatsnew/3.10.rst:801
895907msgid "PEP 647: User-Defined Type Guards"
0 commit comments