Skip to content

Commit 957270e

Browse files
sync with cpython 4b4e6da7
1 parent 87d689f commit 957270e

File tree

2 files changed

+31
-36
lines changed

2 files changed

+31
-36
lines changed

library/itertools.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-11-01 00:23+0000\n"
10+
"POT-Creation-Date: 2023-01-08 00:33+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:04+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -49,7 +49,8 @@ msgid ""
4949
"These tools and their built-in counterparts also work well with the high-"
5050
"speed functions in the :mod:`operator` module. For example, the "
5151
"multiplication operator can be mapped across two vectors to form an "
52-
"efficient dot-product: ``sum(map(operator.mul, vector1, vector2))``."
52+
"efficient dot-product: ``sum(starmap(operator.mul, zip(vec1, vec2, "
53+
"strict=True)))``."
5354
msgstr ""
5455

5556
#: ../../library/itertools.rst:39

library/typing.po

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-12-25 00:32+0000\n"
10+
"POT-Creation-Date: 2023-01-08 00:33+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:14+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -337,7 +337,7 @@ msgid ""
337337
msgstr ""
338338

339339
#: ../../library/typing.rst:222 ../../library/typing.rst:1164
340-
#: ../../library/typing.rst:2805
340+
#: ../../library/typing.rst:2801
341341
msgid "For example::"
342342
msgstr ""
343343
"舉例來說:\n"
@@ -2671,22 +2671,16 @@ msgstr "新增 ``include_extras`` 參數(如 :pep:`593` 中所述)。"
26712671

26722672
#: ../../library/typing.rst:2770
26732673
msgid ""
2674-
"Calling ``get_type_hints()`` on a class no longer returns the annotations of "
2675-
"its base classes."
2676-
msgstr ""
2677-
2678-
#: ../../library/typing.rst:2774
2679-
msgid ""
26802674
"Previously, ``Optional[t]`` was added for function and method annotations if "
26812675
"a default value equal to ``None`` was set. Now the annotation is returned "
26822676
"unchanged."
26832677
msgstr ""
26842678

2685-
#: ../../library/typing.rst:2782
2679+
#: ../../library/typing.rst:2778
26862680
msgid "Provide basic introspection for generic types and special typing forms."
26872681
msgstr ""
26882682

2689-
#: ../../library/typing.rst:2784
2683+
#: ../../library/typing.rst:2780
26902684
msgid ""
26912685
"For a typing object of the form ``X[Y, Z, ...]`` these functions return "
26922686
"``X`` and ``(Y, Z, ...)``. If ``X`` is a generic alias for a builtin or :mod:"
@@ -2697,119 +2691,119 @@ msgid ""
26972691
"and ``()`` correspondingly. Examples::"
26982692
msgstr ""
26992693

2700-
#: ../../library/typing.rst:2803
2694+
#: ../../library/typing.rst:2799
27012695
msgid "Check if a type is a :class:`TypedDict`."
27022696
msgstr ""
27032697

2704-
#: ../../library/typing.rst:2818
2698+
#: ../../library/typing.rst:2814
27052699
msgid ""
27062700
"A class used for internal typing representation of string forward "
27072701
"references. For example, ``List[\"SomeClass\"]`` is implicitly transformed "
27082702
"into ``List[ForwardRef(\"SomeClass\")]``. This class should not be "
27092703
"instantiated by a user, but may be used by introspection tools."
27102704
msgstr ""
27112705

2712-
#: ../../library/typing.rst:2824
2706+
#: ../../library/typing.rst:2820
27132707
msgid ""
27142708
":pep:`585` generic types such as ``list[\"SomeClass\"]`` will not be "
27152709
"implicitly transformed into ``list[ForwardRef(\"SomeClass\")]`` and thus "
27162710
"will not automatically resolve to ``list[SomeClass]``."
27172711
msgstr ""
27182712

2719-
#: ../../library/typing.rst:2831
2713+
#: ../../library/typing.rst:2827
27202714
msgid "Constant"
27212715
msgstr "常數"
27222716

2723-
#: ../../library/typing.rst:2835
2717+
#: ../../library/typing.rst:2831
27242718
msgid ""
27252719
"A special constant that is assumed to be ``True`` by 3rd party static type "
27262720
"checkers. It is ``False`` at runtime. Usage::"
27272721
msgstr ""
27282722

2729-
#: ../../library/typing.rst:2844
2723+
#: ../../library/typing.rst:2840
27302724
msgid ""
27312725
"The first type annotation must be enclosed in quotes, making it a \"forward "
27322726
"reference\", to hide the ``expensive_mod`` reference from the interpreter "
27332727
"runtime. Type annotations for local variables are not evaluated, so the "
27342728
"second annotation does not need to be enclosed in quotes."
27352729
msgstr ""
27362730

2737-
#: ../../library/typing.rst:2851
2731+
#: ../../library/typing.rst:2847
27382732
msgid ""
27392733
"If ``from __future__ import annotations`` is used, annotations are not "
27402734
"evaluated at function definition time. Instead, they are stored as strings "
27412735
"in ``__annotations__``. This makes it unnecessary to use quotes around the "
27422736
"annotation (see :pep:`563`)."
27432737
msgstr ""
27442738

2745-
#: ../../library/typing.rst:2860
2739+
#: ../../library/typing.rst:2856
27462740
msgid "Deprecation Timeline of Major Features"
27472741
msgstr ""
27482742

2749-
#: ../../library/typing.rst:2862
2743+
#: ../../library/typing.rst:2858
27502744
msgid ""
27512745
"Certain features in ``typing`` are deprecated and may be removed in a future "
27522746
"version of Python. The following table summarizes major deprecations for "
27532747
"your convenience. This is subject to change, and not all deprecations are "
27542748
"listed."
27552749
msgstr ""
27562750

2757-
#: ../../library/typing.rst:2867
2751+
#: ../../library/typing.rst:2863
27582752
msgid "Feature"
27592753
msgstr ""
27602754

2761-
#: ../../library/typing.rst:2867
2755+
#: ../../library/typing.rst:2863
27622756
msgid "Deprecated in"
27632757
msgstr "棄用於"
27642758

2765-
#: ../../library/typing.rst:2867
2759+
#: ../../library/typing.rst:2863
27662760
msgid "Projected removal"
27672761
msgstr ""
27682762

2769-
#: ../../library/typing.rst:2867
2763+
#: ../../library/typing.rst:2863
27702764
msgid "PEP/issue"
27712765
msgstr ""
27722766

2773-
#: ../../library/typing.rst:2869
2767+
#: ../../library/typing.rst:2865
27742768
msgid "``typing.io`` and ``typing.re`` submodules"
27752769
msgstr ""
27762770

2777-
#: ../../library/typing.rst:2869
2771+
#: ../../library/typing.rst:2865
27782772
msgid "3.8"
27792773
msgstr "3.8"
27802774

2781-
#: ../../library/typing.rst:2869
2775+
#: ../../library/typing.rst:2865
27822776
msgid "3.13"
27832777
msgstr "3.13"
27842778

2785-
#: ../../library/typing.rst:2869
2779+
#: ../../library/typing.rst:2865
27862780
msgid ":issue:`38291`"
27872781
msgstr ":issue:`38291`"
27882782

2789-
#: ../../library/typing.rst:2872
2783+
#: ../../library/typing.rst:2868
27902784
msgid "``typing`` versions of standard collections"
27912785
msgstr ""
27922786

2793-
#: ../../library/typing.rst:2872
2787+
#: ../../library/typing.rst:2868
27942788
msgid "3.9"
27952789
msgstr "3.9"
27962790

2797-
#: ../../library/typing.rst:2872 ../../library/typing.rst:2875
2791+
#: ../../library/typing.rst:2868 ../../library/typing.rst:2871
27982792
msgid "Undecided"
27992793
msgstr ""
28002794

2801-
#: ../../library/typing.rst:2872
2795+
#: ../../library/typing.rst:2868
28022796
msgid ":pep:`585`"
28032797
msgstr ":pep:`585`"
28042798

2805-
#: ../../library/typing.rst:2875
2799+
#: ../../library/typing.rst:2871
28062800
msgid "``typing.Text``"
28072801
msgstr "``typing.Text``"
28082802

2809-
#: ../../library/typing.rst:2875
2803+
#: ../../library/typing.rst:2871
28102804
msgid "3.11"
28112805
msgstr "3.11"
28122806

2813-
#: ../../library/typing.rst:2875
2807+
#: ../../library/typing.rst:2871
28142808
msgid ":gh:`92332`"
28152809
msgstr ":gh:`92332`"

0 commit comments

Comments
 (0)