Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9d85e0

Browse files
committed
Translate Part 1
1 parenta6723dd commite9d85e0

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

‎library/typing.po

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
1010
"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"
1212
"Last-Translator:RockLeon <therockleona@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1414
"tw)\n"
@@ -623,7 +623,7 @@ msgstr ""
623623

624624
#:../../library/typing.rst:457
625625
msgid"The type of class objects"
626-
msgstr""
626+
msgstr"類別物件的型別"
627627

628628
#:../../library/typing.rst:459
629629
msgid""
@@ -632,44 +632,55 @@ msgid ""
632632
"<Type>`) may accept values that are classes themselves -- specifically, it "
633633
"will accept the *class object* of ``C``. For example::"
634634
msgstr""
635+
"一個變數被註解為 ``C`` 可以接受一個型別為 ``C`` 的值。相對的,一個變數備註解"
636+
"為 ``type[C]``(或 :class:`typing.Type[C] <Type>`)可以接受本身為該類別的值 "
637+
"-- 具體來說,他可能會接受 ``C`` 的\\ *類別物件*\\。舉例來說: ::"
635638

636639
#:../../library/typing.rst:469
637640
msgid"Note that ``type[C]`` is covariant::"
638-
msgstr""
641+
msgstr"請記得 ``type[C]`` 是共變 (covariant) 的: ::"
639642

640643
#:../../library/typing.rst:485
641644
msgid""
642645
"The only legal parameters for :class:`type` are classes, :data:`Any`, :ref:"
643646
"`type variables <generics>`, and unions of any of these types. For example::"
644647
msgstr""
648+
":class:`type` 僅有的合法參數是類別、:data:`Any`、:ref:`型別變數 <generics>`以"
649+
"及這些型別任意組合成的交集。舉例來說: ::"
645650

646651
#:../../library/typing.rst:497
647652
msgid""
648653
"``type[Any]`` is equivalent to :class:`type`, which is the root of Python's :"
649654
"ref:`metaclass hierarchy <metaclasses>`."
650655
msgstr""
656+
"``type[Any]`` 以及 :class:`type` 是相等的,其為 Python :ref:`metaclass 階層結"
657+
"構 (hierachy) <metaclasses>`。"
651658

652659
#:../../library/typing.rst:503
653660
msgid"User-defined generic types"
654-
msgstr""
661+
msgstr"使用者定義泛用型別"
655662

656663
#:../../library/typing.rst:505
657664
msgid"A user-defined class can be defined as a generic class."
658-
msgstr""
665+
msgstr"一個使用者定義的類別可以被定義成一個泛型類別。"
659666

660667
#:../../library/typing.rst:528
661668
msgid""
662669
"This syntax indicates that the class ``LoggedVar`` is parameterised around a "
663670
"single :ref:`type variable <typevar>` ``T`` . This also makes ``T`` valid as "
664671
"a type within the class body."
665672
msgstr""
673+
"這個語法指出類別 ``LoggedVar`` 透過一個單一的 :ref:`型別變數 <typevar>` "
674+
"``T`` 進行參數化 (parameterised)。這使得 ``T`` 在類別中有效的成為型別。"
666675

667676
#:../../library/typing.rst:532
668677
msgid""
669678
"Generic classes implicitly inherit from :class:`Generic`. For compatibility "
670679
"with Python 3.11 and lower, it is also possible to inherit explicitly from :"
671680
"class:`Generic` to indicate a generic class::"
672681
msgstr""
682+
"泛型類別隱性繼承了 :class:`Generic`。為了相容 Python 3.11 及更早版本,也可以"
683+
"明確的繼承 :class:`Generic` 並指出是一個泛型類別: ::"
673684

674685
#:../../library/typing.rst:543
675686
msgid""
@@ -1197,7 +1208,7 @@ msgstr ""
11971208

11981209
#:../../library/typing.rst:1166
11991210
msgid":class:`ParamSpec`"
1200-
msgstr":class:`ParamSpec`"
1211+
msgstr":class:`ParamSpec`"
12011212

12021213
#:../../library/typing.rst:1167../../library/typing.rst:1929
12031214
msgid":ref:`annotating-callables`"
@@ -3612,7 +3623,7 @@ msgstr ":gh:`92332`"
36123623

36133624
#:../../library/typing.rst:3684
36143625
msgid":class:`typing.Hashable` and :class:`typing.Sized`"
3615-
msgstr":class:`typing.Hashable` 和 :class:`typing.Sized`"
3626+
msgstr":class:`typing.Hashable` 和 :class:`typing.Sized`"
36163627

36173628
#:../../library/typing.rst:3685../../library/typing.rst:3689
36183629
msgid"3.12"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp