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

Commitcfe6e1c

Browse files
[po] auto sync
1 parent6669ff9 commitcfe6e1c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎.stat.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"99.72%","updated_at":"2025-10-27T07:57:12Z"}
1+
{"translation":"99.72%","updated_at":"2025-10-27T08:59:07Z"}

‎library/dataclasses.po‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,8 @@ msgid ""
10431043
":meth:`!__init__` method that has to be called, it is common to call this "
10441044
"method in a :meth:`__post_init__` method::"
10451045
msgstr""
1046+
"由 :deco:`dataclass` 生成的 :meth:`~object.__init__` 方法不会调用基类的 :meth:`!__init__`"
1047+
" 方法。 如果基类有需要被调用的 :meth:`!__init__` 方法,通常是在 :meth:`__post_init__` 方法中调用此方法::"
10461048

10471049
#:../../library/dataclasses.rst:572
10481050
msgid""
@@ -1101,6 +1103,10 @@ msgid ""
11011103
"``ClassVar`` pseudo-fields are not returned by the module-level "
11021104
":func:`fields` function."
11031105
msgstr""
1106+
":deco:`dataclass` 会实际检查字段类型的少数几个地方是确定字段是否是在 :pep:`526` 中定义的类变量。 "
1107+
"它通过检查字段的类型是否为 :data:`typing.ClassVar` 来做到这一点。 如果一个字段是 "
1108+
"``ClassVar``,它将被排除在字段范围之外并会被数据类机制所忽略。 这样的 ``ClassVar`` 伪字段将不会被模块层级的 "
1109+
":func:`fields` 函数返回。"
11041110

11051111
#:../../library/dataclasses.rst:608
11061112
msgid"Init-only variables"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp