Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita28192c

Browse files
[po] auto sync
1 parent4291e11 commita28192c

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"77.98%","updated_at":"2025-05-17T11:11:34Z"}
1+
{"translation":"78.00%","updated_at":"2025-05-17T15:11:59Z"}

‎reference/compound_stmts.po

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2862,28 +2862,30 @@ msgstr "标注"
28622862

28632863
#:../../reference/compound_stmts.rst:1869
28642864
msgid"Annotations are now lazily evaluated by default."
2865-
msgstr""
2865+
msgstr"标注现在默认将被惰性求值。"
28662866

28672867
#:../../reference/compound_stmts.rst:1872
28682868
msgid""
28692869
"Variables and function parameters may carry :term:`annotations "
28702870
"<annotation>`, created by adding a colon after the name, followed by an "
28712871
"expression::"
2872-
msgstr""
2872+
msgstr"变量和函数形参可能带有 :term:`标注 <annotation>`,创建方式是在名称后加一个冒号,后面再跟一个表达式::"
28732873

28742874
#:../../reference/compound_stmts.rst:1875
28752875
msgid""
28762876
"x: annotation = 1\n"
28772877
"def f(param: annotation): ..."
28782878
msgstr""
2879+
"x: annotation = 1\n"
2880+
"def f(param: annotation): ..."
28792881

28802882
#:../../reference/compound_stmts.rst:1878
28812883
msgid"Functions may also carry a return annotation following an arrow::"
2882-
msgstr""
2884+
msgstr"函数也可能带有加在一个箭头后的返回值标注::"
28832885

28842886
#:../../reference/compound_stmts.rst:1880
28852887
msgid"def f() -> annotation: ..."
2886-
msgstr""
2888+
msgstr"def f() -> annotation: ..."
28872889

28882890
#:../../reference/compound_stmts.rst:1882
28892891
msgid""

‎reference/datamodel.po

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,13 +1660,17 @@ msgid ""
16601660
":func:`annotationlib.get_annotations` instead of accessing this attribute "
16611661
"directly."
16621662
msgstr""
1663+
"有关使用 :attr:`~object.__annotations__` 的最佳实践,请参阅 :mod:`annotationlib`。 "
1664+
"如有可能,请使用 :func:`annotationlib.get_annotations` 而不是直接访问该属性。"
16631665

16641666
#:../../reference/datamodel.rst:1240
16651667
msgid""
16661668
"The :term:`annotate function` for this class, or ``None`` if the class has "
16671669
"no annotations. See also: :attr:`__annotate__ attributes "
16681670
"<object.__annotate__>`."
16691671
msgstr""
1672+
"针对该类的 :term:`annotate function`,或者如果类没有标注则为 ``None``。 另请参阅: "
1673+
":attr:`__annotate__ 属性 <object.__annotate__>`。"
16701674

16711675
#:../../reference/datamodel.rst:1247
16721676
msgid""
@@ -1996,6 +2000,9 @@ msgid ""
19962000
" and the first item in :attr:`~codeobject.co_consts` is the docstring of the"
19972001
" function."
19982002
msgstr""
2003+
"如果一个代码对象代表函数并且具有文档字符串,则会在 :attr:`~codeobject.co_flags` 中设置 "
2004+
":data:`~inspect.CO_HAS_DOCSTRING` 比特位并且 :attr:`~codeobject.co_consts` "
2005+
"中的第一个条目将是该函数的文档字符串。"
19992006

20002007
#:../../reference/datamodel.rst:1530
20012008
msgid"Methods on code objects"
@@ -4964,13 +4971,13 @@ msgstr ""
49644971

49654972
#:../../reference/datamodel.rst:3586
49664973
msgid"Annotations are now lazily evaluated."
4967-
msgstr""
4974+
msgstr"标注现在将被惰性求值。"
49684975

49694976
#:../../reference/datamodel.rst:3591
49704977
msgid""
49714978
"An :term:`annotate function`. Returns a new dictionary object mapping "
49724979
"attribute/parameter names to their annotation values."
4973-
msgstr""
4980+
msgstr"一个 :term:`annotate function`。 将返回一个将属性/形参名称映射到其标注值的新字典对象。"
49744981

49754982
#:../../reference/datamodel.rst:3594
49764983
msgid""
@@ -5003,12 +5010,12 @@ msgstr ""
50035010

50045011
#:../../reference/datamodel.rst:3613
50055012
msgid":pep:`649` --- Deferred evaluation of annotation using descriptors"
5006-
msgstr""
5013+
msgstr":pep:`649` --- 使用描述器进行延迟标注求值"
50075014

50085015
#:../../reference/datamodel.rst:3614
50095016
msgid""
50105017
"Introduces lazy evaluation of annotations and the ``__annotate__`` function."
5011-
msgstr""
5018+
msgstr"引入标注的惰性求值以及 ``__annotate__`` 函数。"
50125019

50135020
#:../../reference/datamodel.rst:3620
50145021
msgid"Special method lookup"
@@ -5466,13 +5473,15 @@ msgid ""
54665473
"method (such as :meth:`~object.__add__`) fails then the operation is not "
54675474
"supported, which is why the reflected method is not called."
54685475
msgstr""
5476+
"对于相同类型的操作数,如果非反射方法 (如 :meth:`~object.__add__`) "
5477+
"执行失败则相应的操作将被视为不受支持,这就是反射方法不会被调用的原因。"
54695478

54705479
#:../../reference/datamodel.rst:3901
54715480
msgid""
54725481
"If the right operand's type is a subclass of the left operand's type, the "
54735482
"reflected method having precedence allows subclasses to override their "
54745483
"ancestors' operations."
5475-
msgstr""
5484+
msgstr"如果右操作数的类型为左操作数的类型的子类,则具有优先地位的反射方法将允许子类重写其祖先类的操作。"
54765485

54775486
#:../../reference/datamodel.rst:14../../reference/datamodel.rst:152
54785487
#:../../reference/datamodel.rst:163../../reference/datamodel.rst:187

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp