@@ -24,7 +24,7 @@ msgid ""
24
24
msgstr ""
25
25
"Project-Id-Version :Python 3.13\n "
26
26
"Report-Msgid-Bugs-To :\n "
27
- "POT-Creation-Date :2025-04-18 14:18 +0000\n "
27
+ "POT-Creation-Date :2025-05-02 14:19 +0000\n "
28
28
"PO-Revision-Date :2021-06-28 01:16+0000\n "
29
29
"Last-Translator :Freesand Leo <yuqinju@163.com>, 2025\n "
30
30
"Language-Team :Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -35,8 +35,8 @@ msgstr ""
35
35
"Plural-Forms :nplurals=1; plural=0;\n "
36
36
37
37
#: ../../library/typing.rst:3
38
- msgid ":mod:`typing` --- Support for type hints"
39
- msgstr ":mod:`typing` —— 对类型提示的支持 "
38
+ msgid ":mod:`! typing` --- Support for type hints"
39
+ msgstr ""
40
40
41
41
#: ../../library/typing.rst:16
42
42
msgid "**Source code:** :source:`Lib/typing.py`"
@@ -1332,12 +1332,10 @@ msgid ""
1332
1332
"User-defined generics for parameter expressions are also supported via "
1333
1333
"parameter specification variables in the form ``[**P]``. The behavior is "
1334
1334
"consistent with type variables' described above as parameter specification "
1335
- "variables are treated by the typing module as a specialized type variable. "
1336
- "The one exception to this is that a list of types can be used to substitute "
1337
- "a :class:`ParamSpec`::"
1335
+ "variables are treated by the:mod:`! typing` module as a specialized type "
1336
+ "variable. The one exception to this is that a list of types can be used to "
1337
+ "substitute a :class:`ParamSpec`::"
1338
1338
msgstr ""
1339
- "用户定义的参数表达式的泛型也受到支持,可以采用 ``[**P]`` 形式的参数规格变量来表示。该行为与上面描述的类型变量一致,因为参数规格变量被 "
1340
- "typing 模块视为专门的类型变量。这方面的一个例外是,类型的列表可用于替代 :class:`ParamSpec`:"
1341
1339
1342
1340
#: ../../library/typing.rst:671
1343
1341
msgid ""
@@ -1424,11 +1422,9 @@ msgstr ""
1424
1422
msgid ""
1425
1423
"A user-defined generic class can have ABCs as base classes without a "
1426
1424
"metaclass conflict. Generic metaclasses are not supported. The outcome of "
1427
- "parameterizing generics is cached, and most types in the typing module are "
1428
- ":term:`hashable` and comparable for equality."
1425
+ "parameterizing generics is cached, and most types in the:mod:`! typing` "
1426
+ "module are :term:`hashable` and comparable for equality."
1429
1427
msgstr ""
1430
- "用户定义的泛型类可以将 ABC 作为基类而不会导致元类冲突。 参数化泛型的输出结果会被缓存,且 typing 模块中的大多数类型都是 "
1431
- ":term:`hashable` 并且支持相等性比较。"
1432
1428
1433
1429
#: ../../library/typing.rst:714
1434
1430
msgid "The :data:`Any` type"
@@ -4945,9 +4941,9 @@ msgstr "协议"
4945
4941
4946
4942
#: ../../library/typing.rst:2688
4947
4943
msgid ""
4948
- "The following protocols are provided by the typing module. All aredecorated "
4949
- " with :func:`@runtime_checkable <runtime_checkable>`."
4950
- msgstr "下列协议由 typing 模块提供并已全被装饰为 :func:`可在运行时检查的 <runtime_checkable>`。 "
4944
+ "The following protocols are provided by the:mod:`! typing` module. All are "
4945
+ "decorated with :func:`@runtime_checkable <runtime_checkable>`."
4946
+ msgstr ""
4951
4947
4952
4948
#: ../../library/typing.rst:2693
4953
4949
msgid ""
@@ -6061,13 +6057,11 @@ msgstr "一些已被弃用的别名"
6061
6057
#: ../../library/typing.rst:3386
6062
6058
msgid ""
6063
6059
"This module defines several deprecated aliases to pre-existing standard "
6064
- "library classes. These were originally included in the typing module in "
6065
- "order to support parameterizing these generic classes using ``[]``.However, "
6066
- " the aliases became redundant in Python 3.9 when the correspondingpre- "
6067
- "existing classes were enhanced to support ``[]`` (see :pep:`585`)."
6060
+ "library classes. These were originally included in the:mod:`! typing` module"
6061
+ " in order to support parameterizing these generic classes using ``[]``. "
6062
+ "However, the aliases became redundant in Python 3.9 when the corresponding "
6063
+ "pre- existing classes were enhanced to support ``[]`` (see :pep:`585`)."
6068
6064
msgstr ""
6069
- "本模块给标准库中已有的类定义了许多别名,这些别名现已不再建议使用。起初 typing 模块包含这些别名是为了支持用 ``[]`` "
6070
- "来参数化泛型类。然而,在 Python 3.9 中,对应的已有的类也支持了 ``[]`` (参见 :pep:`585`),因此这些别名了就成了多余的了。"
6071
6065
6072
6066
#: ../../library/typing.rst:3393
6073
6067
msgid ""
@@ -6084,10 +6078,9 @@ msgid ""
6084
6078
"If at some point it is decided to remove these deprecated aliases, a "
6085
6079
"deprecation warning will be issued by the interpreter for at least two "
6086
6080
"releases prior to removal. The aliases are guaranteed to remain in the "
6087
- "typing module without deprecation warnings until at least Python 3.14."
6081
+ ":mod:`!typing` module without deprecation warnings until at least Python "
6082
+ "3.14."
6088
6083
msgstr ""
6089
- "一旦确定了何时这些别名将被移除,解释器将比正式移除之时提前至少两个版本发出弃用警告 (deprecation warning)。但保证至少在 "
6090
- "Python 3.14 之前,这些别名仍会留在 typing 模块中,并且不会引发弃用警告。"
6091
6084
6092
6085
#: ../../library/typing.rst:3403
6093
6086
msgid ""