Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aadd41a

Browse files
committed
[po] auto sync bot
1 parent ac3261f commit aadd41a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

library/typing.po

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgstr ""
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2018-10-29 09:36+0900\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13-
"Last-Translator: Freesand Leo <[email protected]>, 2018\n"
13+
"Last-Translator: Kder <[email protected]>, 2018\n"
1414
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=UTF-8\n"
@@ -295,12 +295,14 @@ msgid ""
295295
"every type as being compatible with :data:`Any` and :data:`Any` as being "
296296
"compatible with every type."
297297
msgstr ""
298+
":data:`Any` 是一种特殊的类型。静态类型检查器将所有类型视为与 :data:`Any` 兼容,反之亦然, :data:`Any` "
299+
"也与所有类型相兼容。"
298300

299301
#: ../../library/typing.rst:325
300302
msgid ""
301303
"This means that it is possible to perform any operation or method call on a "
302304
"value of type on :data:`Any` and assign it to any variable::"
303-
msgstr ""
305+
msgstr "这意味着可对类型为 :data:`Any` 的值执行任何操作或者调用任何方法,并可以把 :data:`Any` 赋值给任意变量::"
304306

305307
#: ../../library/typing.rst:343
306308
msgid ""
@@ -310,18 +312,20 @@ msgid ""
310312
"declared to be of type :class:`str` and receives an :class:`int` value at "
311313
"runtime!"
312314
msgstr ""
315+
"需要注意的是,将 :data:`Any` 类型的值赋值给另一个更具体的类型时,Python不会执行类型检查。例如,当把 ``a`` 赋值给 ``s`` "
316+
"时,即使 ``s`` 被声明为 :class:`str` 类型,在运行时接收到的是 :class:`int` 值,静态类型检查器也不会报错。"
313317

314318
#: ../../library/typing.rst:349
315319
msgid ""
316320
"Furthermore, all functions without a return type or parameter types will "
317321
"implicitly default to using :data:`Any`::"
318-
msgstr ""
322+
msgstr "此外,所有返回值无类型或形参无类型的函数将隐式地默认使用 :data:`Any` 类型::"
319323

320324
#: ../../library/typing.rst:362
321325
msgid ""
322326
"This behavior allows :data:`Any` to be used as an *escape hatch* when you "
323327
"need to mix dynamically and statically typed code."
324-
msgstr ""
328+
msgstr "当需要混用动态类型和静态类型的代码时,上述行为可以让 :data:`Any` 被用作 *应急出口* 。"
325329

326330
#: ../../library/typing.rst:365
327331
msgid ""

0 commit comments

Comments
 (0)