@@ -8,7 +8,7 @@ msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
10
"POT-Creation-Date : 2023-11-09 00:04+0000\n "
11
- "PO-Revision-Date : 2023-11-06 10:51 +0800\n "
11
+ "PO-Revision-Date : 2023-12-14 20:17 +0800\n "
12
12
"Last-Translator : RockLeon <therockleona@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
14
"tw)\n "
@@ -623,7 +623,7 @@ msgstr ""
623
623
624
624
#: ../../library/typing.rst:457
625
625
msgid "The type of class objects"
626
- msgstr ""
626
+ msgstr "類別物件的型別 "
627
627
628
628
#: ../../library/typing.rst:459
629
629
msgid ""
@@ -632,44 +632,55 @@ msgid ""
632
632
"<Type>`) may accept values that are classes themselves -- specifically, it "
633
633
"will accept the *class object* of ``C``. For example::"
634
634
msgstr ""
635
+ "一個變數被註解為 ``C`` 可以接受一個型別為 ``C`` 的值。相對的,一個變數備註解"
636
+ "為 ``type[C]``(或 :class:`typing.Type[C] <Type>`)可以接受本身為該類別的值 "
637
+ "-- 具體來說,他可能會接受 ``C`` 的\\ *類別物件*\\ 。舉例來說: ::"
635
638
636
639
#: ../../library/typing.rst:469
637
640
msgid "Note that ``type[C]`` is covariant::"
638
- msgstr ""
641
+ msgstr "請記得 ``type[C]`` 是共變 (covariant) 的: :: "
639
642
640
643
#: ../../library/typing.rst:485
641
644
msgid ""
642
645
"The only legal parameters for :class:`type` are classes, :data:`Any`, :ref:"
643
646
"`type variables <generics>`, and unions of any of these types. For example::"
644
647
msgstr ""
648
+ ":class:`type` 僅有的合法參數是類別、:data:`Any`、:ref:`型別變數 <generics>`以"
649
+ "及這些型別任意組合成的交集。舉例來說: ::"
645
650
646
651
#: ../../library/typing.rst:497
647
652
msgid ""
648
653
"``type[Any]`` is equivalent to :class:`type`, which is the root of Python's :"
649
654
"ref:`metaclass hierarchy <metaclasses>`."
650
655
msgstr ""
656
+ "``type[Any]`` 以及 :class:`type` 是相等的,其為 Python :ref:`metaclass 階層結"
657
+ "構 (hierachy) <metaclasses>`。"
651
658
652
659
#: ../../library/typing.rst:503
653
660
msgid "User-defined generic types"
654
- msgstr ""
661
+ msgstr "使用者定義泛用型別 "
655
662
656
663
#: ../../library/typing.rst:505
657
664
msgid "A user-defined class can be defined as a generic class."
658
- msgstr ""
665
+ msgstr "一個使用者定義的類別可以被定義成一個泛型類別。 "
659
666
660
667
#: ../../library/typing.rst:528
661
668
msgid ""
662
669
"This syntax indicates that the class ``LoggedVar`` is parameterised around a "
663
670
"single :ref:`type variable <typevar>` ``T`` . This also makes ``T`` valid as "
664
671
"a type within the class body."
665
672
msgstr ""
673
+ "這個語法指出類別 ``LoggedVar`` 透過一個單一的 :ref:`型別變數 <typevar>` "
674
+ "``T`` 進行參數化 (parameterised)。這使得 ``T`` 在類別中有效的成為型別。"
666
675
667
676
#: ../../library/typing.rst:532
668
677
msgid ""
669
678
"Generic classes implicitly inherit from :class:`Generic`. For compatibility "
670
679
"with Python 3.11 and lower, it is also possible to inherit explicitly from :"
671
680
"class:`Generic` to indicate a generic class::"
672
681
msgstr ""
682
+ "泛型類別隱性繼承了 :class:`Generic`。為了相容 Python 3.11 及更早版本,也可以"
683
+ "明確的繼承 :class:`Generic` 並指出是一個泛型類別: ::"
673
684
674
685
#: ../../library/typing.rst:543
675
686
msgid ""
@@ -1197,7 +1208,7 @@ msgstr ""
1197
1208
1198
1209
#: ../../library/typing.rst:1166
1199
1210
msgid ":class:`ParamSpec`"
1200
- msgstr ":class:`ParamSpec`。 "
1211
+ msgstr ":class:`ParamSpec`"
1201
1212
1202
1213
#: ../../library/typing.rst:1167 ../../library/typing.rst:1929
1203
1214
msgid ":ref:`annotating-callables`"
@@ -3612,7 +3623,7 @@ msgstr ":gh:`92332`"
3612
3623
3613
3624
#: ../../library/typing.rst:3684
3614
3625
msgid ":class:`typing.Hashable` and :class:`typing.Sized`"
3615
- msgstr ":class:`typing.Hashable` 和 :class:`typing.Sized`。 "
3626
+ msgstr ":class:`typing.Hashable` 和 :class:`typing.Sized`"
3616
3627
3617
3628
#: ../../library/typing.rst:3685 ../../library/typing.rst:3689
3618
3629
msgid "3.12"
0 commit comments