@@ -1427,6 +1427,8 @@ msgid ""
1427
1427
"parameterizing generics is cached, and most types in the :mod:`!typing` "
1428
1428
"module are :term:`hashable` and comparable for equality."
1429
1429
msgstr ""
1430
+ "用户自定义泛型类可以将 ABC 作为基类而不会导致元类冲突。 泛型元类是不受支持的。 形参化泛型的结果会被缓存,且 :mod:`!typing` "
1431
+ "模块中的大多数类型都是 :term:`hashable` 并可进行相等性比较。"
1430
1432
1431
1433
#: ../../library/typing.rst:714
1432
1434
msgid "The :data:`Any` type"
@@ -4946,6 +4948,8 @@ msgid ""
4946
4948
"The following protocols are provided by the :mod:`!typing` module. All are "
4947
4949
"decorated with :func:`@runtime_checkable <runtime_checkable>`."
4948
4950
msgstr ""
4951
+ "下列协议由 :mod:`!typing` 模块提供。 它们全都使用 :func:`@runtime_checkable "
4952
+ "<runtime_checkable>` 装饰器。"
4949
4953
4950
4954
#: ../../library/typing.rst:2693
4951
4955
msgid ""
@@ -6064,6 +6068,9 @@ msgid ""
6064
6068
"However, the aliases became redundant in Python 3.9 when the corresponding "
6065
6069
"pre-existing classes were enhanced to support ``[]`` (see :pep:`585`)."
6066
6070
msgstr ""
6071
+ "本模块给已存在的标准库类定义了一些已被弃用的别名。 这些别名当初包括在 :mod:`!typing` 模块中是为了支持使用 ``[]`` "
6072
+ "来对这些泛型类进行形参化。 然而,在 Python 3.9 对应的已存在类都被增强为支持 ``[]`` 使得这些别名变得多余了 (参见 "
6073
+ ":pep:`585`)。"
6067
6074
6068
6075
#: ../../library/typing.rst:3393
6069
6076
msgid ""
@@ -6083,6 +6090,8 @@ msgid ""
6083
6090
":mod:`!typing` module without deprecation warnings until at least Python "
6084
6091
"3.14."
6085
6092
msgstr ""
6093
+ "如果在某一时刻这些已弃用的别名确定要被移除,解释器将早于实际移除至少两个发布版发出弃用警告。 至少在 Python 3.14 之前都会保证让这些别名留在"
6094
+ " :mod:`!typing` 模块中并且不会发出弃用警告。"
6086
6095
6087
6096
#: ../../library/typing.rst:3403
6088
6097
msgid ""
0 commit comments