Skip to content

Commit 6571949

Browse files
pomerge from 3.10 branch into 3.8
1 parent bb59a30 commit 6571949

File tree

5 files changed

+28
-9
lines changed

5 files changed

+28
-9
lines changed

library/typing.po

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ msgstr ""
2525

2626
#: ../../library/typing.rst:2
2727
msgid ":mod:`typing` --- Support for type hints"
28-
msgstr ""
28+
msgstr ":mod:`typing` --- Suporte para dicas de tipo"
2929

3030
#: ../../library/typing.rst:9
3131
msgid "**Source code:** :source:`Lib/typing.py`"
@@ -37,6 +37,9 @@ msgid ""
3737
"They can be used by third party tools such as type checkers, IDEs, linters, "
3838
"etc."
3939
msgstr ""
40+
"O tempo de execução do Python não força anotações de tipos de variáveis e "
41+
"funções. Elas podem ser usadas por ferramentas de terceiros como "
42+
"verificadores de tipo, IDEs, linters, etc."
4043

4144
#: ../../library/typing.rst:19
4245
msgid ""
@@ -52,17 +55,21 @@ msgstr ""
5255
msgid ""
5356
"The function below takes and returns a string and is annotated as follows::"
5457
msgstr ""
58+
"A função abaixo recebe e retorna uma string e é anotada como a seguir::"
5559

5660
#: ../../library/typing.rst:32
5761
msgid ""
5862
"In the function ``greeting``, the argument ``name`` is expected to be of "
5963
"type :class:`str` and the return type :class:`str`. Subtypes are accepted as "
6064
"arguments."
6165
msgstr ""
66+
"Na função ``greeting``, é esperado que o argumento ``name`` seja do tipo :"
67+
"class:`str` e o retorno do tipo :class:`str`. Subtipos são aceitos como "
68+
"argumentos."
6269

6370
#: ../../library/typing.rst:37
6471
msgid "Type aliases"
65-
msgstr ""
72+
msgstr "Apelidos de tipo"
6673

6774
#: ../../library/typing.rst:39
6875
msgid ""
@@ -75,16 +82,20 @@ msgid ""
7582
"Type aliases are useful for simplifying complex type signatures. For "
7683
"example::"
7784
msgstr ""
85+
"Apelidos de tipo são úteis para simplificar assinaturas de tipo complexas. "
86+
"Por exemplo::"
7887

7988
#: ../../library/typing.rst:69
8089
msgid ""
8190
"Note that ``None`` as a type hint is a special case and is replaced by "
8291
"``type(None)``."
8392
msgstr ""
93+
"Note que ``None`` como uma dica de tipo é um caso especial e é substituído "
94+
"por ``type(None)``."
8495

8596
#: ../../library/typing.rst:75
8697
msgid "NewType"
87-
msgstr ""
98+
msgstr "NewType"
8899

89100
#: ../../library/typing.rst:77
90101
msgid "Use the :func:`NewType` helper function to create distinct types::"
@@ -95,6 +106,9 @@ msgid ""
95106
"The static type checker will treat the new type as if it were a subclass of "
96107
"the original type. This is useful in helping catch logical errors::"
97108
msgstr ""
109+
"O verificador de tipo estático tratará o novo tipo como se fosse uma "
110+
"subclasse do tipo original. Isso é útil para ajudar a encontrar erros de "
111+
"lógica::"
98112

99113
#: ../../library/typing.rst:96
100114
msgid ""
@@ -103,6 +117,11 @@ msgid ""
103117
"pass in a ``UserId`` wherever an ``int`` might be expected, but will prevent "
104118
"you from accidentally creating a ``UserId`` in an invalid way::"
105119
msgstr ""
120+
"Você ainda pode executar todas as operações ``int`` em uma variável do tipo "
121+
"``UserId``, mas o resultado sempre será do tipo ``int``. Isso permite que "
122+
"você passe um ``UserId`` em qualquer ocasião que ``int`` possa ser esperado, "
123+
"mas previne que você acidentalmente crie um ``UserId`` de uma forma "
124+
"inválida::"
106125

107126
#: ../../library/typing.rst:104
108127
msgid ""

whatsnew/3.3.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ msgstr "Novos módulos"
11491149

11501150
#: ../../whatsnew/3.3.rst:864
11511151
msgid "faulthandler"
1152-
msgstr ""
1152+
msgstr "faulthandler"
11531153

11541154
#: ../../whatsnew/3.3.rst:866
11551155
msgid ""

whatsnew/3.5.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ msgstr ""
13901390

13911391
#: ../../whatsnew/3.5.rst:1138
13921392
msgid "faulthandler"
1393-
msgstr ""
1393+
msgstr "faulthandler"
13941394

13951395
#: ../../whatsnew/3.5.rst:1140
13961396
msgid ""

whatsnew/3.6.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ msgstr ""
15711571

15721572
#: ../../whatsnew/3.6.rst:1044
15731573
msgid "encodings"
1574-
msgstr ""
1574+
msgstr "encodings"
15751575

15761576
#: ../../whatsnew/3.6.rst:1046
15771577
msgid ""
@@ -1606,7 +1606,7 @@ msgstr ""
16061606

16071607
#: ../../whatsnew/3.6.rst:1076
16081608
msgid "faulthandler"
1609-
msgstr ""
1609+
msgstr "faulthandler"
16101610

16111611
#: ../../whatsnew/3.6.rst:1078
16121612
msgid ""
@@ -1617,7 +1617,7 @@ msgstr ""
16171617

16181618
#: ../../whatsnew/3.6.rst:1084
16191619
msgid "fileinput"
1620-
msgstr ""
1620+
msgstr "fileinput"
16211621

16221622
#: ../../whatsnew/3.6.rst:1086
16231623
msgid ""

whatsnew/3.7.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ msgstr ""
10091009

10101010
#: ../../whatsnew/3.7.rst:571
10111011
msgid "dataclasses"
1012-
msgstr ""
1012+
msgstr "dataclasses"
10131013

10141014
#: ../../whatsnew/3.7.rst:573
10151015
msgid ""

0 commit comments

Comments
 (0)