@@ -5869,10 +5869,12 @@ msgid ""
5869
5869
"If the :class:`bytearray` needs to grow, all new bytes, those beyond *size*, "
5870
5870
"will be set to null bytes."
5871
5871
msgstr ""
5872
+ "Se :class:`bytearray` precisar crescer, todos os novos bytes, aqueles além "
5873
+ "de *size*, serão definidos como bytes nulos."
5872
5874
5873
5875
#: ../../library/stdtypes.rst:3021
5874
5876
msgid "This is equivalent to:"
5875
- msgstr ""
5877
+ msgstr "Isso equivale a: "
5876
5878
5877
5879
#: ../../library/stdtypes.rst:3029
5878
5880
msgid "Examples:"
@@ -7419,7 +7421,7 @@ msgstr ""
7419
7421
7420
7422
#: ../../library/stdtypes.rst:4190
7421
7423
msgid "memoryview is now a :term:`generic type`."
7422
- msgstr ""
7424
+ msgstr "memoryview é agora um :term:`tipo genérico`. "
7423
7425
7424
7426
#: ../../library/stdtypes.rst:4193
7425
7427
msgid ":class:`memoryview` has several methods:"
@@ -7930,17 +7932,20 @@ msgstr ""
7930
7932
7931
7933
#: ../../library/stdtypes.rst:4446
7932
7934
msgid "Count the number of occurrences of *value*."
7933
- msgstr ""
7935
+ msgstr "Conta o número de ocorrências de *value*. "
7934
7936
7935
7937
#: ../../library/stdtypes.rst:4452
7936
7938
msgid ""
7937
7939
"Return the index of the first occurrence of *value* (at or after index "
7938
7940
"*start* and before index *stop*)."
7939
7941
msgstr ""
7942
+ "Retorna o índice da primeira ocorrência de *value* (no índice *index* ou "
7943
+ "depois dele e antes do índice *stop*)."
7940
7944
7941
7945
#: ../../library/stdtypes.rst:4455
7942
7946
msgid "Raises a :exc:`ValueError` if *value* cannot be found."
7943
7947
msgstr ""
7948
+ "Levanta uma exceção :exc:`ValueError` se *value* não puder ser encontrado."
7944
7949
7945
7950
#: ../../library/stdtypes.rst:4459
7946
7951
msgid "There are also several readonly attributes available:"
@@ -8590,6 +8595,11 @@ msgid ""
8590
8595
"equality, the following examples all return a dictionary equal to "
8591
8596
"``{\" one\" : 1,\" two\" : 2,\" three\" : 3}``::"
8592
8597
msgstr ""
8598
+ "Dicionários são iguais se e somente se eles os mesmos pares ``(key, value)`` "
8599
+ "(independente de ordem). Comparações de ordem ('<', '<=', '>=', '>') "
8600
+ "levantam :exc:`TypeError`. Para ilustrar a criação e igualdade de "
8601
+ "dicionários, os exemplos a seguir retornam um dicionário igual a ``{\" one\" : "
8602
+ "1,\" two\" : 2,\" three\" : 3}``::"
8593
8603
8594
8604
#: ../../library/stdtypes.rst:4847
8595
8605
msgid ""
@@ -9986,6 +9996,11 @@ msgid ""
9986
9996
"expression enables cleaner type hinting syntax compared to subscripting :"
9987
9997
"class:`typing.Union`."
9988
9998
msgstr ""
9999
+ "Um objeto união contém o valor da operação ``|`` (bit a bit ou) em vários :"
10000
+ "ref:`objetos tipo <bltin-type-objects>`. Esses tipos são destinados "
10001
+ "principalmente para :term:`anotações de tipos <annotation>`. A expressão de "
10002
+ "tipo de união habilita a sintaxe de sugestão de tipo mais limpo em "
10003
+ "comparação com subscrever :class:`typing.Union`."
9989
10004
9990
10005
#: ../../library/stdtypes.rst:5534
9991
10006
msgid ""
@@ -10055,13 +10070,15 @@ msgstr "int | str == str | int"
10055
10070
10056
10071
#: ../../library/stdtypes.rst:5566
10057
10072
msgid "It creates instances of :class:`typing.Union`::"
10058
- msgstr ""
10073
+ msgstr "Cria instâncias de :class:`typing.Union`:: "
10059
10074
10060
10075
#: ../../library/stdtypes.rst:5568
10061
10076
msgid ""
10062
10077
"int | str == typing.Union[int, str]\n"
10063
10078
"type(int | str) is typing.Union"
10064
10079
msgstr ""
10080
+ "int | str == typing.Union[int, str]\n"
10081
+ "type(int | str) is typing.Union"
10065
10082
10066
10083
#: ../../library/stdtypes.rst:5571
10067
10084
msgid "Optional types can be spelled as a union with ``None``::"
@@ -10116,6 +10133,8 @@ msgid ""
10116
10133
"The user-exposed type for the union object can be accessed from :class:"
10117
10134
"`typing.Union` and used for :func:`isinstance` checks::"
10118
10135
msgstr ""
10136
+ "O tipo exposto ao usuário para o objeto união pode ser acessado a partir de :"
10137
+ "class:`typing.Union` e usado por verificações de :func:`isinstance`::"
10119
10138
10120
10139
#: ../../library/stdtypes.rst:5597
10121
10140
msgid ""
@@ -10127,6 +10146,13 @@ msgid ""
10127
10146
" File\" <stdin>\" , line 1, in <module>\n"
10128
10147
"TypeError: cannot create 'typing.Union' instances"
10129
10148
msgstr ""
10149
+ ">>> import typing\n"
10150
+ ">>> isinstance(int | str, typing.Union)\n"
10151
+ "True\n"
10152
+ ">>> typing.Union()\n"
10153
+ "Traceback (most recent call last):\n"
10154
+ " File\" <stdin>\" , line 1, in <module>\n"
10155
+ "TypeError: cannot create 'typing.Union' instances"
10130
10156
10131
10157
#: ../../library/stdtypes.rst:5606
10132
10158
msgid ""
@@ -10174,6 +10200,9 @@ msgid ""
10174
10200
"were instances of :class:`types.UnionType`, which remains an alias for :"
10175
10201
"class:`typing.Union`."
10176
10202
msgstr ""
10203
+ "Objetos Union agora são instâncias de :class:`typing.Union`. Anteriormente, "
10204
+ "eram instâncias de :class:`types.UnionType`, que continua sendo um apelido "
10205
+ "para :class:`typing.Union`."
10177
10206
10178
10207
#: ../../library/stdtypes.rst:5639
10179
10208
msgid "Other Built-in Types"