@@ -2506,6 +2506,9 @@ msgid ""
2506
2506
"Ivan Levkivskyi in `Github #280 "
2507
2507
"<https://github.com/python/typing/pull/280>`_.)"
2508
2508
msgstr ""
2509
+ "增加 :const:`typing.ClassVar` 类型结构体用来标记类变量。 变量标注在 :pep:`526` 中被引入,包装在 ClassVar"
2510
+ " 中的变量标注表示给定的属性将被用作类变量而不应在该类的实例上设置。 (由 Ivan Levkivskyi 在 `Github #280 中贡献 "
2511
+ "<https://github.com/python/typing/pull/280>`_。)"
2509
2512
2510
2513
#: ../../whatsnew/3.6.rst:1625
2511
2514
msgid ""
@@ -2514,19 +2517,24 @@ msgid ""
2514
2517
"Guido van Rossum in `Github #230 "
2515
2518
"<https://github.com/python/typing/issues/230>`_.)"
2516
2519
msgstr ""
2520
+ "新增 :const:`~typing.TYPE_CHECKING` 常量将被静态类型检查器视为 ``True``,但在运行时将为 ``False``。 "
2521
+ "(由 Guido van Rossum 在 `Github #230 中贡献 "
2522
+ "<https://github.com/python/typing/issues/230>`_。)"
2517
2523
2518
2524
#: ../../whatsnew/3.6.rst:1630
2519
2525
msgid ""
2520
2526
"A new :func:`~typing.NewType` helper function has been added to create "
2521
2527
"lightweight distinct types for annotations::"
2522
- msgstr ""
2528
+ msgstr "新增 :func:`~typing.NewType` 辅助函数用来创建针对标注的轻量级单独类型:: "
2523
2529
2524
2530
#: ../../whatsnew/3.6.rst:1638
2525
2531
msgid ""
2526
2532
"The static type checker will treat the new type as if it were a subclass of "
2527
2533
"the original type. (Contributed by Ivan Levkivskyi in `Github #189 "
2528
2534
"<https://github.com/python/typing/issues/189>`_.)"
2529
2535
msgstr ""
2536
+ "静态类型检查器将把新类型当作原始类型的子类来处理。 (由 Ivan Levkivskyi 在 `Github #189 中贡献 "
2537
+ "<https://github.com/python/typing/issues/189>`_。)"
2530
2538
2531
2539
#: ../../whatsnew/3.6.rst:1644
2532
2540
msgid "unicodedata"
0 commit comments