1010# jaystone776 <1732865113@qq.com>, 2021
1111# Y. X., 2022
1212# Freesand Leo <yuqinju@163.com>, 2022
13+ # WH-2099 <wh2099@outlook.com>, 2022
1314#
1415#, fuzzy
1516msgid ""
@@ -18,7 +19,7 @@ msgstr ""
1819"Report-Msgid-Bugs-To : \n "
1920"POT-Creation-Date : 2022-06-16 06:28+0000\n "
2021"PO-Revision-Date : 2021-06-28 00:47+0000\n "
21- "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2022\n "
22+ "Last-Translator : WH-2099 <wh2099@outlook .com>, 2022\n "
2223"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2324"MIME-Version : 1.0\n "
2425"Content-Type : text/plain; charset=UTF-8\n "
@@ -114,7 +115,7 @@ msgstr "annotation -- 标注"
114115msgid ""
115116"A label associated with a variable, a class attribute or a function "
116117"parameter or return value, used by convention as a :term:`type hint`."
117- msgstr "关联到某个变量、类属性、函数形参或返回值的标签,被约定作为 :term:`type hint` 来使用。"
118+ msgstr "关联到某个变量、类属性、函数形参或返回值的标签,被约定作为 :term:`类型注解 < type hint> ` 来使用。"
118119
119120#: ../../glossary.rst:52
120121msgid ""
@@ -1058,6 +1059,9 @@ msgid ""
10581059"class<sequence-types>` such as :class:`list` or :class:`dict`. Used for "
10591060":term:`type hints <type hint>` and :term:`annotations <annotation>`."
10601061msgstr ""
1062+ "可被形参化的 :term:`type`;通常为诸如 :class:`list` 和 :class:`dict` 的 :ref:`container "
1063+ "class<sequence-types>`。 可用于 :term:`类型注解 <type hint>` 和 :term:`标注 "
1064+ "<annotation>`。"
10611065
10621066#: ../../glossary.rst:528
10631067msgid ""
@@ -2336,7 +2340,7 @@ msgstr "一个类型的同义词,创建方式是把类型赋值给特定的标
23362340msgid ""
23372341"Type aliases are useful for simplifying :term:`type hints <type hint>`. For "
23382342"example::"
2339- msgstr "类型别名的作用是简化 :term:`类型提示 <type hint>`。例如::"
2343+ msgstr "类型别名的作用是简化 :term:`类型注解 <type hint>`。例如::"
23402344
23412345#: ../../glossary.rst:1186
23422346msgid "could be made more readable like this::"
@@ -2348,7 +2352,7 @@ msgstr "参见 :mod:`typing` 和 :pep:`484`,其中有对此功能的详细描
23482352
23492353#: ../../glossary.rst:1194
23502354msgid "type hint"
2351- msgstr "type hint -- 类型提示 "
2355+ msgstr "type hint -- 类型注解 "
23522356
23532357#: ../../glossary.rst:1196
23542358msgid ""
@@ -2361,13 +2365,13 @@ msgid ""
23612365"Type hints are optional and are not enforced by Python but they are useful "
23622366"to static type analysis tools, and aid IDEs with code completion and "
23632367"refactoring."
2364- msgstr "类型提示属于可选项 ,Python 不要求提供,但其可对静态类型分析工具起作用,并可协助 IDE 实现代码补全与重构。"
2368+ msgstr "类型注解属于可选项 ,Python 不要求提供,但其可对静态类型分析工具起作用,并可协助 IDE 实现代码补全与重构。"
23652369
23662370#: ../../glossary.rst:1203
23672371msgid ""
23682372"Type hints of global variables, class attributes, and functions, but not "
23692373"local variables, can be accessed using :func:`typing.get_type_hints`."
2370- msgstr "全局变量、类属性和函数的类型提示可以使用 :func:`typing.get_type_hints` 来访问,但局部变量则不可以。"
2374+ msgstr "全局变量、类属性和函数的类型注解可以使用 :func:`typing.get_type_hints` 来访问,但局部变量则不可以。"
23712375
23722376#: ../../glossary.rst:1208
23732377msgid "universal newlines"
@@ -2402,7 +2406,7 @@ msgstr "在标注变量或类属性时,还可选择为其赋值::"
24022406msgid ""
24032407"Variable annotations are usually used for :term:`type hints <type hint>`: "
24042408"for example this variable is expected to take :class:`int` values::"
2405- msgstr "变量标注通常被用作 :term:`类型提示 <type hint>`:例如以下变量预期接受 :class:`int` 类型的值::"
2409+ msgstr "变量标注通常被用作 :term:`类型注解 <type hint>`:例如以下变量预期接受 :class:`int` 类型的值::"
24062410
24072411#: ../../glossary.rst:1230
24082412msgid "Variable annotation syntax is explained in section :ref:`annassign`."
0 commit comments