@@ -2991,7 +2991,7 @@ msgstr "更多细节参见 :pep:`698`。"
29912991
29922992#: ../../library/typing.rst:2924
29932993msgid "Decorator to mark a class or function as unavailable at runtime."
2994- msgstr ""
2994+ msgstr "将类或函数标记为在运行时不可用的装饰器。 "
29952995
29962996#: ../../library/typing.rst:2926
29972997msgid ""
@@ -3034,6 +3034,8 @@ msgid ""
30343034"unless ``include_extras`` is set to ``True`` (see :class:`Annotated` for "
30353035"more information). For example:"
30363036msgstr ""
3037+ "本函数会递归地将所有 ``Annotated[T, ...]`` 替换为 ``T``,除非 ``include_extras`` 被设为 "
3038+ "``True`` (请参阅 :class:`Annotated` 了解详情)。 例如:"
30373039
30383040#: ../../library/typing.rst:2971
30393041msgid ""
@@ -3049,6 +3051,7 @@ msgid ""
30493051"Added ``include_extras`` parameter as part of :pep:`593`. See the "
30503052"documentation on :data:`Annotated` for more information."
30513053msgstr ""
3054+ "增加了作为 :pep:`593` 组成部分的 ``include_extras`` 形参。 请参阅 :data:`Annotated` 文档了解详情。"
30523055
30533056#: ../../library/typing.rst:2980
30543057msgid ""
@@ -3061,7 +3064,7 @@ msgstr "在之前,如果设置了等于 ``None`` 的默认值则会为函数
30613064msgid ""
30623065"Get the unsubscripted version of a type: for a typing object of the form "
30633066"``X[Y, Z, ...]`` return ``X``."
3064- msgstr ""
3067+ msgstr "获取一个类型的不带下标的版本:对于 ``X[Y, Z, ...]`` 形式的类型对象将返回 ``X``。 "
30653068
30663069#: ../../library/typing.rst:2990
30673070msgid ""
@@ -3070,6 +3073,9 @@ msgid ""
30703073":class:`ParamSpecArgs` or :class:`ParamSpecKwargs`, return the underlying "
30713074":class:`ParamSpec`. Return ``None`` for unsupported objects."
30723075msgstr ""
3076+ "如果 ``X`` 是一个内置类型或 :mod:`collections` 类在 typing 模块中的别名,它将被正规化为原始的类。 如果 ``X`` "
3077+ "是 :class:`ParamSpecArgs` 或 :class:`ParamSpecKwargs` 的实例,则返回下层的 "
3078+ ":class:`ParamSpec`。 对于不受支持的对象将返回 ``None``。"
30733079
30743080#: ../../library/typing.rst:2996 ../../library/typing.rst:3019
30753081msgid "Examples:"
0 commit comments