@@ -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-06-27 00:19+0000\n "
11
- "PO-Revision-Date : 2023-09-04 10:25 +0800\n "
11
+ "PO-Revision-Date : 2023-09-04 21:35 +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 "
@@ -94,234 +94,262 @@ msgid ""
94
94
"\" Type System Reference\" section of `the mypy docs <https://mypy."
95
95
"readthedocs.io/en/stable/index.html>`_"
96
96
msgstr ""
97
- "\\ `mypy 文件 <https://mypy.readthedocs.io/en/stable/index.html>`_ \\ 的 "
98
- "\" Type System Reference\" 章節"
97
+ "`mypy 文件 <https://mypy.readthedocs.io/en/stable/index.html>`_ \\ 的 \" 型別 "
98
+ "系統參照 ( Type System Reference) \" 章節"
99
99
100
100
#: ../../library/typing.rst:53
101
101
msgid ""
102
102
"The Python typing system is standardised via PEPs, so this reference should "
103
103
"broadly apply to most Python type checkers. (Some parts may still be "
104
104
"specific to mypy.)"
105
105
msgstr ""
106
+ "Python 的型別系統是基於 PEPs 進行標準化,所以這個參照 (reference) 應該在多數 "
107
+ "Python 型別檢查器中廣為使用。(某些部分依然是特定給 mypy 使用。)"
106
108
107
109
#: ../../library/typing.rst:59
108
110
msgid ""
109
111
"`\" Static Typing with Python\" <https://typing.readthedocs.io/en/latest/>`_"
110
112
msgstr ""
113
+ "`\" Python 的靜態型別 (Static Typing)\" <https://typing.readthedocs.io/en/"
114
+ "latest/>`_"
111
115
112
116
#: ../../library/typing.rst:58
113
117
msgid ""
114
118
"Type-checker-agnostic documentation written by the community detailing type "
115
119
"system features, useful typing related tools and typing best practices."
116
120
msgstr ""
121
+ "由社群編寫的跨平台型別檢查器文件 (type-checker-agnostic) 詳細描述型別系統的功"
122
+ "能、實用的型別衍伸工具、以及型別的最佳實踐 (best practice)。"
117
123
118
124
#: ../../library/typing.rst:65
119
125
msgid "Relevant PEPs"
120
- msgstr ""
126
+ msgstr "相關的 PEPs "
121
127
122
128
#: ../../library/typing.rst:67
123
129
msgid ""
124
130
"Since the initial introduction of type hints in :pep:`484` and :pep:`483`, a "
125
131
"number of PEPs have modified and enhanced Python's framework for type "
126
132
"annotations:"
127
133
msgstr ""
134
+ "自從 :pep:`484` 及 :pep:`483` 對於型別提示的基礎介紹,多個 PEPs 針對型別註釋"
135
+ "的 Python 框架進行修訂及加強:"
128
136
129
137
#: ../../library/typing.rst:77
130
138
msgid ":pep:`526`: Syntax for Variable Annotations"
131
- msgstr ""
139
+ msgstr ":pep:`526`: 變數註釋的語法 "
132
140
133
141
#: ../../library/typing.rst:77
134
142
msgid ""
135
143
"*Introducing* syntax for annotating variables outside of function "
136
144
"definitions, and :data:`ClassVar`"
137
- msgstr ""
145
+ msgstr "*介紹*在定義函式之外的變數註釋語法,以及 :data:`ClassVar` "
138
146
139
147
#: ../../library/typing.rst:80
140
148
msgid ":pep:`544`: Protocols: Structural subtyping (static duck typing)"
141
149
msgstr ""
150
+ ":pep:`544`: 協定:建構式子型別 (Structural Subtyping) (靜態鴨子類型,Static "
151
+ "Duck Typing)"
142
152
143
153
#: ../../library/typing.rst:80
144
154
msgid ""
145
155
"*Introducing* :class:`Protocol` and the :func:"
146
156
"`@runtime_checkable<runtime_checkable>` decorator"
147
157
msgstr ""
158
+ "*介紹* :class:`Protocol` 以及 func:`@runtime_checkable<runtime_checkable>` 裝"
159
+ "飾器 (decorator)"
148
160
149
161
#: ../../library/typing.rst:83
150
162
msgid ":pep:`585`: Type Hinting Generics In Standard Collections"
151
163
msgstr ""
164
+ ":pep:`585`: 基礎集合中的型別提示泛型 (Type Hinting Generics In Standard "
165
+ "Collections)"
152
166
153
167
#: ../../library/typing.rst:83
154
168
msgid ""
155
169
"*Introducing* :class:`types.GenericAlias` and the ability to use standard "
156
170
"library classes as :ref:`generic types<types-genericalias>`"
157
171
msgstr ""
172
+ "*介紹* :class:`types.GenericAlias` 以及使用基礎函式庫類別 :ref:`generic "
173
+ "types<types-genericalias>` 的能力"
158
174
159
175
#: ../../library/typing.rst:85
160
176
msgid ":pep:`586`: Literal Types"
161
- msgstr ""
177
+ msgstr ":pep:`586`: 文字型別 "
162
178
163
179
#: ../../library/typing.rst:86
164
180
msgid "*Introducing* :data:`Literal`"
165
- msgstr ""
181
+ msgstr "*介紹* :data:`Literal` "
166
182
167
183
#: ../../library/typing.rst:87
168
184
msgid ""
169
185
":pep:`589`: TypedDict: Type Hints for Dictionaries with a Fixed Set of Keys"
170
- msgstr ""
186
+ msgstr ":pep:`589`: TypedDict:含有一組固定 (fixed) 鍵值的型別提示字典 "
171
187
172
188
#: ../../library/typing.rst:88
173
189
msgid "*Introducing* :class:`TypedDict`"
174
- msgstr ""
190
+ msgstr "*介紹* :class:`TypedDict` "
175
191
176
192
#: ../../library/typing.rst:89
177
193
msgid ":pep:`591`: Adding a final qualifier to typing"
178
- msgstr ""
194
+ msgstr ":pep:`591`: 為型別新增一個最終限定符 (final qualifier) "
179
195
180
196
#: ../../library/typing.rst:90
181
197
msgid "*Introducing* :data:`Final` and the :func:`@final<final>` decorator"
182
- msgstr ""
198
+ msgstr "*介紹* :data:`Final` 以及 :func:`@final<final>` 裝飾器 "
183
199
184
200
#: ../../library/typing.rst:91
185
201
msgid ":pep:`593`: Flexible function and variable annotations"
186
- msgstr ""
202
+ msgstr ":pep:`593`: 彈性函式及變數註釋 "
187
203
188
204
#: ../../library/typing.rst:92
189
205
msgid "*Introducing* :data:`Annotated`"
190
- msgstr ""
206
+ msgstr "*介紹* :data:`Annotated` "
191
207
192
208
#: ../../library/typing.rst:95
193
209
msgid ":pep:`604`: Allow writing union types as ``X | Y``"
194
- msgstr ""
210
+ msgstr ":pep:`604`: 允許寫入聯合型別 (union type) 為 ``X | Y`` "
195
211
196
212
#: ../../library/typing.rst:94
197
213
msgid ""
198
214
"*Introducing* :data:`types.UnionType` and the ability to use the binary-or "
199
215
"operator ``|`` to signify a :ref:`union of types<types-union>`"
200
216
msgstr ""
217
+ "*介紹* :data:`types.UnionType` 以及使用 binary-or 運算子 ``|`` 以表示 :ref:`"
218
+ "型別聯合 <types-union>` 的能力"
201
219
202
220
#: ../../library/typing.rst:97
203
221
msgid ":pep:`612`: Parameter Specification Variables"
204
- msgstr ""
222
+ msgstr ":pep:`612`: 參數規格變數 (Parameter Specification Variable) "
205
223
206
224
#: ../../library/typing.rst:98
207
225
msgid "*Introducing* :class:`ParamSpec` and :data:`Concatenate`"
208
- msgstr ""
226
+ msgstr "*介紹* :class:`ParamSpec` 及 :data:`Concatenate` "
209
227
210
228
#: ../../library/typing.rst:99
211
229
msgid ":pep:`613`: Explicit Type Aliases"
212
- msgstr ""
230
+ msgstr ":pep:`613`: 顯式型別別名 (Explicit Type Alias) "
213
231
214
232
#: ../../library/typing.rst:100
215
233
msgid "*Introducing* :data:`TypeAlias`"
216
- msgstr "*引入 * :data:`TypeAlias`"
234
+ msgstr "*介紹 * :data:`TypeAlias`"
217
235
218
236
#: ../../library/typing.rst:101
219
237
msgid ":pep:`646`: Variadic Generics"
220
- msgstr ""
238
+ msgstr ":pep:`646`: 可變的泛型 (Variadic Generic) "
221
239
222
240
#: ../../library/typing.rst:102
223
241
msgid "*Introducing* :data:`TypeVarTuple`"
224
- msgstr "*引入 * :data:`TypeVarTuple`"
242
+ msgstr "*介紹 * :data:`TypeVarTuple`"
225
243
226
244
#: ../../library/typing.rst:103
227
245
msgid ":pep:`647`: User-Defined Type Guards"
228
- msgstr ""
246
+ msgstr ":pep:`647`: 使用者定義的型別護衛 (Type Guard) "
229
247
230
248
#: ../../library/typing.rst:104
231
249
msgid "*Introducing* :data:`TypeGuard`"
232
- msgstr "*引入 * :data:`TypeGuard`"
250
+ msgstr "*介紹 * :data:`TypeGuard`"
233
251
234
252
#: ../../library/typing.rst:105
235
253
msgid ""
236
254
":pep:`655`: Marking individual TypedDict items as required or potentially "
237
255
"missing"
238
- msgstr ""
256
+ msgstr ":pep:`655`: 標記個別的 TypedDict 物件為必需的或可能遺失的 "
239
257
240
258
#: ../../library/typing.rst:106
241
259
msgid "*Introducing* :data:`Required` and :data:`NotRequired`"
242
- msgstr "*引入 * :data:`Required` 和 :data:`NotRequired`"
260
+ msgstr "*介紹 * :data:`Required` 和 :data:`NotRequired`"
243
261
244
262
#: ../../library/typing.rst:107
245
263
msgid ":pep:`673`: Self type"
246
- msgstr ""
264
+ msgstr ":pep:`673`: Self 型別 "
247
265
248
266
#: ../../library/typing.rst:108
249
267
msgid "*Introducing* :data:`Self`"
250
- msgstr "*引入 * :data:`Self`"
268
+ msgstr "*介紹 * :data:`Self`"
251
269
252
270
#: ../../library/typing.rst:109
253
271
msgid ":pep:`675`: Arbitrary Literal String Type"
254
- msgstr ""
272
+ msgstr ":pep:`675`: 任意字串型別 (Arbitrary Literal String Type) "
255
273
256
274
#: ../../library/typing.rst:110
257
275
msgid "*Introducing* :data:`LiteralString`"
258
- msgstr "*引入 * :data:`LiteralString`"
276
+ msgstr "*介紹 * :data:`LiteralString`"
259
277
260
278
#: ../../library/typing.rst:111
261
279
msgid ":pep:`681`: Data Class Transforms"
262
- msgstr ""
280
+ msgstr ":pep:`681`: 資料類別轉換 "
263
281
264
282
#: ../../library/typing.rst:112
265
283
msgid ""
266
284
"*Introducing* the :func:`@dataclass_transform<dataclass_transform>` decorator"
267
- msgstr "*引入 * :func:`@dataclass_transform<dataclass_transform>` 裝飾器"
285
+ msgstr "*介紹 * :func:`@dataclass_transform<dataclass_transform>` 裝飾器"
268
286
269
287
#: ../../library/typing.rst:114
270
288
msgid ":pep:`692`: Using ``TypedDict`` for more precise ``**kwargs`` typing"
271
- msgstr ""
289
+ msgstr ":pep:`692`: 為更精準的 ``**kwargs`` 型別使用 ``TypedDict`` "
272
290
273
291
#: ../../library/typing.rst:114
274
292
msgid ""
275
293
"*Introducing* a new way of typing ``**kwargs`` with :data:`Unpack` and :data:"
276
294
"`TypedDict`"
277
295
msgstr ""
296
+ "*介紹* 型別 ``**kwargs`` 的新方式 :data:`Unpack` 以及 :data:`TypedDict`"
278
297
279
298
#: ../../library/typing.rst:116
280
299
msgid ":pep:`695`: Type Parameter Syntax"
281
- msgstr ""
300
+ msgstr ":pep:`695`: 型別參數語法 "
282
301
283
302
#: ../../library/typing.rst:117
284
303
msgid ""
285
304
"*Introducing* builtin syntax for creating generic functions, classes, and "
286
305
"type aliases."
287
- msgstr ""
306
+ msgstr "*介紹*建立泛型函式、類別、型別別名的內建語法。 "
288
307
289
308
#: ../../library/typing.rst:119
290
309
msgid ":pep:`698`: Adding an override decorator to typing"
291
- msgstr ""
310
+ msgstr ":pep:`698`: 為型別新增可覆寫的裝飾器 "
292
311
293
312
#: ../../library/typing.rst:119
294
313
msgid "*Introducing* the :func:`@override<override>` decorator"
295
- msgstr "*引入 * :func:`@override<override>` 裝飾器"
314
+ msgstr "*介紹 * :func:`@override<override>` 裝飾器"
296
315
297
316
#: ../../library/typing.rst:129
298
317
msgid "Type aliases"
299
- msgstr ""
318
+ msgstr "型別別名 "
300
319
301
320
#: ../../library/typing.rst:131
302
321
msgid ""
303
322
"A type alias is defined using the :keyword:`type` statement, which creates "
304
323
"an instance of :class:`TypeAliasType`. In this example, ``Vector`` and "
305
324
"``list[float]`` will be treated equivalently by static type checkers::"
306
325
msgstr ""
326
+ "一個型別別名被定義來使用 keyword:`type` 陳述式,其建立了 :class:"
327
+ "`TypeAliasType` 的實例。在這個範例中,``Vector`` 及 ``list[float]`` 會被當作"
328
+ "和靜態型別檢查器一樣同等對待: ::"
307
329
308
330
#: ../../library/typing.rst:144
309
331
msgid ""
310
332
"Type aliases are useful for simplifying complex type signatures. For "
311
333
"example::"
312
334
msgstr ""
335
+ "類別別名對於簡化複雜的型別簽章 (complex type signature) 非常好用。舉例來"
336
+ "說: ::"
313
337
314
338
#: ../../library/typing.rst:162
315
339
msgid ""
316
340
"The :keyword:`type` statement is new in Python 3.12. For backwards "
317
341
"compatibility, type aliases can also be created through simple assignment::"
318
342
msgstr ""
343
+ ":keyword:`type` 陳述句是 Python 3.12 的新功能。為了向後相容性,型別別名可以透"
344
+ "過簡單的賦值來建立: ::"
319
345
320
346
#: ../../library/typing.rst:167
321
347
msgid ""
322
348
"Or marked with :data:`TypeAlias` to make it explicit that this is a type "
323
349
"alias, not a normal variable assignment::"
324
350
msgstr ""
351
+ "或是用 :data:`TypeAlias` 標記,讓它明確的表示這是一個型別別名,而非一般的變數"
352
+ "賦值: ::"
325
353
326
354
#: ../../library/typing.rst:177
327
355
msgid "NewType"
0 commit comments