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

Skip to content

Commit 14fd5e1

Browse files
[po] auto sync
1 parent 3e5edc4 commit 14fd5e1

4 files changed

Lines changed: 22 additions & 8 deletions

File tree

glossary.po

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -823,9 +823,7 @@ msgstr "filesystem encoding and error handler -- 文件系统编码格式与错
823823
msgid ""
824824
"Encoding and error handler used by Python to decode bytes from the operating"
825825
" system and encode Unicode to the operating system."
826-
msgstr ""
827-
"Encoding and error handler used by Python 用来从操作系统解码字节串和向操作系统编码 Unicode "
828-
"的编码格式与错误处理句柄。"
826+
msgstr "Python 用来从操作系统解码字节串和向操作系统编码 Unicode 的编码格式与错误处理句柄。"
829827

830828
#: ../../glossary.rst:407
831829
msgid ""

library/asyncio-eventloop.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ msgstr ":meth:`call_soon` 的线程安全变体。必须被用于安排 *来自
344344
msgid ""
345345
"Raises :exc:`RuntimeError` if called on a loop that's been closed. This can "
346346
"happen on a secondary thread when the main application is shutting down."
347-
msgstr ""
347+
msgstr "如果在已被关闭的循环上调用则会引发 :exc:`RuntimeError`。 这可能会在主应用程序被关闭时在二级线程上发生。"
348348

349349
#: ../../library/asyncio-eventloop.rst:223
350350
msgid ""

library/pyexpat.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ msgid ""
306306
"versions of this module also used this format.) By default, this attribute "
307307
"is false; it may be changed at any time."
308308
msgstr ""
309+
"将该属性设为非零整数会使得各个属性被报告为列表而非字典。 各个属性会按照在文档文本中的出现顺序显示。 对于每个属性,将显示两个列表条目:属性名和属性值。"
310+
" (该模块的较旧版本也使用了此格式。) 默认情况下,该属性为假值;它可以在任何时候被更改。"
309311

310312
#: ../../library/pyexpat.rst:239
311313
msgid ""
@@ -317,6 +319,8 @@ msgid ""
317319
" processors. By default, this attribute is false; it may be changed at any "
318320
"time."
319321
msgstr ""
322+
"如果设为非零整数,解析器将只报告在文档实例中指明的属性而不报告来自属性声明的属性。 设置此属性的应用程序需要特别小心地使用从声明中获得的附加信息以符合 "
323+
"XML 处理程序的行为标准。 默认情况下,该属性为假值;它可以在任何时候被更改。"
320324

321325
#: ../../library/pyexpat.rst:247
322326
msgid ""

whatsnew/3.10.po

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@ msgid ""
833833
"for :pep:`484`\\ 's ``Callable`` have been added to the :mod:`typing` "
834834
"module."
835835
msgstr ""
836+
"在 :mod:`typing` 模块中新增了两个选项以改进用于 :pep:`484` 的 ``Callable`` 提供给静态类型检查器的信息。"
836837

837838
#: ../../whatsnew/3.10.rst:760
838839
msgid ""
@@ -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."
844845
msgstr ""
846+
"第一个选项是形参规格变量。 它们被用来将一个可调用对象的形参类型转发给另一个可调用对象 —— 这种模式常见于高阶函数和装饰器。 使用示例可在 "
847+
":class:`typing.ParamSpec` 中找到。 在之前版本中,没有一种简单办法能以如此精确的方式对形参类型的依赖性进行类型标注。"
845848

846849
#: ../../whatsnew/3.10.rst:766
847850
msgid ""
@@ -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`."
852855
msgstr ""
856+
"第二个选项是新的 ``Concatenate`` 运算符。 它与形参规格变量一起使用以便对增加或移除了其他可调用对象的高阶可调用对象进行类型标注。 "
857+
"使用示例可以在 :class:`typing.Concatenate` 中找到。"
853858

854859
#: ../../whatsnew/3.10.rst:771
855860
msgid ""
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."
859864
msgstr ""
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
862870
msgid ""
863871
"(Contributed by Ken Jin in :issue:`41559`, with minor enhancements by Jelle "
864872
"Zijlstra in :issue:`43783`. PEP written by Mark Mendoza.)"
865873
msgstr ""
874+
"(由 Ken Jin 在 :issue:`41559` 中贡献,并由 Jelle Zijlstra 在 :issue:`43783` 中加以少量改进。 "
875+
"PEP 由 Mark Mendoza 撰写。)"
866876

867877
#: ../../whatsnew/3.10.rst:780
868878
msgid "PEP 613: TypeAlias"
869-
msgstr ""
879+
msgstr "PEP 613: 类型别名"
870880

871881
#: ../../whatsnew/3.10.rst:782
872882
msgid ""
@@ -876,20 +886,22 @@ msgid ""
876886
" assignments, especially when forward references or invalid types were "
877887
"involved. Compare::"
878888
msgstr ""
889+
":pep:`484` 引入了类型别名的概念,只要求它们是不带标注的最高层级赋值。 "
890+
"这种简单性有时会使得类型检查器难以区分类型别名和普通赋值,特别是当涉及到前向引用或无效类型的时候。 例如在比较::"
879891

880892
#: ../../whatsnew/3.10.rst:790
881893
msgid ""
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
887899
msgid "See :pep:`613` for more details."
888-
msgstr ""
900+
msgstr "请参阅 :pep:`613` 了解详情。"
889901

890902
#: ../../whatsnew/3.10.rst:798
891903
msgid "(Contributed by Mikhail Golubev in :issue:`41923`.)"
892-
msgstr ""
904+
msgstr "(由 Mikhail Golubev 在 :issue:`41923` 中贡献。)"
893905

894906
#: ../../whatsnew/3.10.rst:801
895907
msgid "PEP 647: User-Defined Type Guards"

0 commit comments

Comments
 (0)