99# Nicolas Evangelista, 2022
1010# PAULO NASCIMENTO, 2024
1111# Adorilson Bezerra <adorilson@gmail.com>, 2024
12- # José Carlos, 2024
1312# Rafael Fontenelle <rffontenelle@gmail.com>, 2024
13+ # José Carlos, 2024
1414#
1515#, fuzzy
1616msgid ""
1717msgstr ""
1818"Project-Id-Version : Python 3.13\n "
1919"Report-Msgid-Bugs-To : \n "
20- "POT-Creation-Date : 2024-08-02 14 :15+0000\n "
20+ "POT-Creation-Date : 2024-08-03 20 :15+0000\n "
2121"PO-Revision-Date : 2021-06-28 00:52+0000\n "
22- "Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com> , 2024\n "
22+ "Last-Translator : José Carlos , 2024\n "
2323"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
2424"teams/5390/pt_BR/)\n "
2525"MIME-Version : 1.0\n "
@@ -366,23 +366,30 @@ msgid ""
366366"You should avoid assigning to the ``__annotations__`` member of objects "
367367"directly. Let Python manage setting ``__annotations__``."
368368msgstr ""
369+ "Evite atribuir diretamente ao membro ``__annotations__`` dos objetos. Deixe "
370+ "que Python gerenciar a configuração de ``__annotations__``."
369371
370372#: ../../howto/annotations.rst:184
371373msgid ""
372374"If you do assign directly to the ``__annotations__`` member of an object, "
373375"you should always set it to a ``dict`` object."
374376msgstr ""
377+ "Se você atribuir diretamente ao membro ``__annotations__`` do objeto, sempre "
378+ "o defina como um objeto ``dict``."
375379
376380#: ../../howto/annotations.rst:187
377381msgid ""
378382"If you directly access the ``__annotations__`` member of an object, you "
379383"should ensure that it's a dictionary before attempting to examine its "
380384"contents."
381385msgstr ""
386+ "Caso acesse diretamente o membro ``__annotations__`` de um objeto, "
387+ "certifique-se de que ele é um dicionário antes de tentar examinar seu "
388+ "conteúdo."
382389
383390#: ../../howto/annotations.rst:191
384391msgid "You should avoid modifying ``__annotations__`` dicts."
385- msgstr "Você deve evitar modificar o dicionário ``__annotations__``."
392+ msgstr "Evite modificar o dicionário ``__annotations__``."
386393
387394#: ../../howto/annotations.rst:193
388395msgid ""
@@ -432,6 +439,13 @@ msgid ""
432439"``__annotations__`` to any Python value, and will retain whatever value is "
433440"set."
434441msgstr ""
442+ "Em todas as versões de Python 3, você pode definir ``__annotations__`` como "
443+ "``None`` em um objeto de função . Contudo, acessar em sequência as anotações "
444+ "nesse objeto utilizando ``fn.__annotations__`` irá criar preguiçosamente um "
445+ "dicionário vazio como descrito no primeiro parágrafo dessa seção. Isso *não* "
446+ "é válido para módulos e classes, em qualquer versão de Python; esses objetos "
447+ "permitem atribuir ``__annotations__`` a qualquer valor de Python, e "
448+ "armazenam qualquer valor atribuído."
435449
436450#: ../../howto/annotations.rst:221
437451msgid ""
@@ -440,9 +454,16 @@ msgid ""
440454"will itself be quoted. In effect the annotation is quoted *twice.* For "
441455"example::"
442456msgstr ""
457+ "Se Python transformar sua anotação em string (utilizando ``from __future__ "
458+ "import annotations``), e você especificar uma string como anotação, essa "
459+ "string será posta entre aspas. Na prática a anotação receberá aspas *duplas."
460+ "* Por exemplo::"
443461
444462#: ../../howto/annotations.rst:232
445463msgid ""
446464"This prints ``{'a': \" 'str'\" }``. This shouldn't really be considered a "
447465"\" quirk\" ; it's mentioned here simply because it might be surprising."
448466msgstr ""
467+ "Isso exibe ``{'a': \" 'str'\" }``. Não considere isso como uma "
468+ "\" peculiaridade\" ; foi mencionado aqui simplesmente porque pode ser "
469+ "surpreendente."
0 commit comments