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

Commitf5f4676

Browse files
Update translations
1 parent1f195b5 commitf5f4676

File tree

3 files changed

+31
-16
lines changed

3 files changed

+31
-16
lines changed

‎library/typing.po

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5039,6 +5039,10 @@ msgid ""
50395039
"contain hyphens, or when key names must not be :ref:`mangled <private-name-"
50405040
"mangling>` like regular private names::"
50415041
msgstr""
5042+
"Esta sintaxe funcional permite definirmos chaves usando :ref:"
5043+
"`identificadores <identifiers>` inválidos, por exemplo, por serem palavras-"
5044+
"chave ou conterem hífens, ou quando os nomes das chaves não devem ser :ref:"
5045+
"`desconfigurados <private-name-mangling>` como nomes privados comuns::"
50425046

50435047
#:../../library/typing.rst:2467
50445048
msgid""
@@ -5054,14 +5058,25 @@ msgid ""
50545058
"Point2D = TypedDict('Point2D', {'in': int, 'x-y': int})\n"
50555059
"Definition = TypedDict('Definition', {'__schema': str}) # not mangled"
50565060
msgstr""
5061+
"# levanta SyntaxError\n"
5062+
"class Point2D(TypedDict):\n"
5063+
" in: int # 'in' é uma palavra reservada\n"
5064+
" x-y: int # nome com hífen\n"
5065+
"\n"
5066+
"class Definition(TypedDict):\n"
5067+
" __schema: str # desconfigurado para `_Definition__schema`\n"
5068+
"\n"
5069+
"# OK, sintaxe funcional\n"
5070+
"Point2D = TypedDict('Point2D', {'in': int, 'x-y': int})\n"
5071+
"Definition = TypedDict('Definition', {'__schema': str}) # não desconfigurado"
50575072

50585073
#:../../library/typing.rst:2479
50595074
msgid""
50605075
"By default, all keys must be present in a ``TypedDict``. It is possible to "
50615076
"mark individual keys as non-required using :data:`NotRequired`::"
50625077
msgstr""
50635078
"Por padrão, todas as chaves devem estar presentes em um ``TypedDict``. É "
5064-
"possível marcar chaves individuais como nãoobrigatórias usando :data:"
5079+
"possível marcar chaves individuais como não-obrigatórias usando :data:"
50655080
"`NotRequired`::"
50665081

50675082
#:../../library/typing.rst:2482
@@ -5123,7 +5138,7 @@ msgid ""
51235138
"``True`` as the value of the ``total`` argument. ``True`` is the default, "
51245139
"and makes all items defined in the class body required."
51255140
msgstr""
5126-
"Isso significa que um ``Point2D`` ``TypedDict`` pode ter qualquer uma de "
5141+
"Isso significa que um ``TypedDict`` ``Point2D`` pode ter qualquer uma de "
51275142
"suas chaves omitidas. Espera-se que um verificador de tipos apenas permita "
51285143
"os literais ``False`` ou ``True`` como valores do argumento ``total``. "
51295144
"``True`` é o padrão, e todos os itens definidos no corpo da classe tornam-se "
@@ -5135,7 +5150,7 @@ msgid ""
51355150
"using :data:`Required`::"
51365151
msgstr""
51375152
"As chaves individuais de um ``TypedDict`` com ``total=False`` podem ser "
5138-
"marcadasconforme necessário usando :data:`Required`::"
5153+
"marcadascomo obrigatórias usando :data:`Required`::"
51395154

51405155
#:../../library/typing.rst:2511
51415156
msgid""
@@ -5433,24 +5448,24 @@ msgid ""
54335448
"Added support for marking individual keys as :data:`Required` or :data:"
54345449
"`NotRequired`. See :pep:`655`."
54355450
msgstr""
5436-
"Adicionado suporte para marcar chaves individuais como :data:`Required` ou :"
5451+
"adicionado suporte para marcar chaves individuais como :data:`Required` ou :"
54375452
"data:`NotRequired`. Consulte :pep:`655`."
54385453

54395454
#:../../library/typing.rst:2666
54405455
msgid"Added support for generic ``TypedDict``\\ s."
5441-
msgstr"Adicionado suporte para ``TypedDict``\\ s genéricos."
5456+
msgstr"adicionado suporte para ``TypedDict``\\ s genéricos."
54425457

54435458
#:../../library/typing.rst:2669
54445459
msgid""
54455460
"Removed support for the keyword-argument method of creating ``TypedDict``\\ "
54465461
"s."
54475462
msgstr""
5448-
"Removeu suporte para o método de argumento nomeadode criar ``TypedDict``\\ "
5449-
"s."
5463+
"removeu suporte para o método de argumento nomeadopara criar "
5464+
"``TypedDict``\\s."
54505465

54515466
#:../../library/typing.rst:2672
54525467
msgid"Support for the :data:`ReadOnly` qualifier was added."
5453-
msgstr"Adiciona suporte ao qualificador :data:`ReadOnly`."
5468+
msgstr"adiciona suporte ao qualificador :data:`ReadOnly`."
54545469

54555470
#:../../library/typing.rst:2675
54565471
msgid""
@@ -5461,11 +5476,11 @@ msgid ""
54615476
"Python 3.15. To create a TypedDict class with 0 fields, use ``class "
54625477
"TD(TypedDict): pass`` or ``TD = TypedDict(\"TD\", {})``."
54635478
msgstr""
5464-
"Ao usaro funcionalsintaxe para criar uma classe TypedDict,a falha ao "
5465-
"passar umvalor para o'campo' parâmetro(``TD = TypedDict(\"TD\")``)é "
5466-
"descontinuado. Passar ``None`` para o'campo' parâmetro (``TD = "
5467-
"TypedDict(\"TD\", None)``) tambémé descontinuado. Ambos não serão "
5468-
"permitidos em Python 3.15. Para criar uma classe TypedDict com 0campo, use "
5479+
"ao usarasintaxefuncionalpara criar uma classe TypedDict,não passar um "
5480+
"valor para oparâmetro 'fields'(``TD = TypedDict(\"TD\")``)está "
5481+
"descontinuado. Passar ``None`` para oparâmetro 'fields' (``TD = "
5482+
"TypedDict(\"TD\", None)``) tambémestá descontinuado. Ambos não serão "
5483+
"permitidos em Python 3.15. Para criar uma classe TypedDict com 0campos, use "
54695484
"``class TD(TypedDict): pass`` ou ``TD = TypedDict(\"TD\", {})``."
54705485

54715486
#:../../library/typing.rst:2684

‎potodo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868

6969

70-
#library (63.31% done)
70+
#library (63.32% done)
7171

7272
- array.po 84 / 86 ( 97.0% translated).
7373
- asyncio-dev.po 16 / 55 ( 29.0% translated).
@@ -162,7 +162,7 @@
162162
- tkinter.ttk.po 141 / 429 ( 32.0% translated).
163163
- traceback.po 9 / 116 ( 7.0% translated).
164164
- tracemalloc.po 21 / 156 ( 13.0% translated).
165-
- typing.po775 / 784 (98.0% translated).
165+
- typing.po777 / 784 (99.0% translated).
166166
- unicodedata.po 5 / 32 ( 15.0% translated).
167167
- unittest.mock-examples.po 22 / 182 ( 12.0% translated).
168168
- unittest.mock.po 103 / 448 ( 22.0% translated).

‎stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion":"60.18%","translated":45587,"entries":75754,"updated_at":"2025-04-13T23:08:41+00:00Z"}
1+
{"completion":"60.18%","translated":45589,"entries":75754,"updated_at":"2025-04-14T23:08:54+00:00Z"}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp