@@ -25,7 +25,7 @@ msgstr ""
2525
2626#: ../../library/typing.rst:2
2727msgid ":mod:`typing` --- Support for type hints"
28- msgstr ""
28+ msgstr ":mod:`typing` --- Suporte para dicas de tipo "
2929
3030#: ../../library/typing.rst:9
3131msgid "**Source code:** :source:`Lib/typing.py`"
@@ -52,17 +52,21 @@ msgstr ""
5252msgid ""
5353"The function below takes and returns a string and is annotated as follows::"
5454msgstr ""
55+ "A função abaixo recebe e retorna uma string e é anotada como a seguir::"
5556
5657#: ../../library/typing.rst:32
5758msgid ""
5859"In the function ``greeting``, the argument ``name`` is expected to be of "
5960"type :class:`str` and the return type :class:`str`. Subtypes are accepted as "
6061"arguments."
6162msgstr ""
63+ "Na função ``greeting``, é esperado que o argumento ``name`` seja do tipo :"
64+ "class:`str` e o retorno do tipo :class:`str`. Subtipos são aceitos como "
65+ "argumentos."
6266
6367#: ../../library/typing.rst:37
6468msgid "Type aliases"
65- msgstr ""
69+ msgstr "Apelidos de tipo "
6670
6771#: ../../library/typing.rst:39
6872msgid ""
@@ -75,16 +79,20 @@ msgid ""
7579"Type aliases are useful for simplifying complex type signatures. For "
7680"example::"
7781msgstr ""
82+ "Apelidos de tipo são úteis para simplificar assinaturas de tipo complexas. "
83+ "Por exemplo::"
7884
7985#: ../../library/typing.rst:69
8086msgid ""
8187"Note that ``None`` as a type hint is a special case and is replaced by "
8288"``type(None)``."
8389msgstr ""
90+ "Note que ``None`` como uma dica de tipo é um caso especial e é substituído "
91+ "por ``type(None)``."
8492
8593#: ../../library/typing.rst:75
8694msgid "NewType"
87- msgstr ""
95+ msgstr "NewType "
8896
8997#: ../../library/typing.rst:77
9098msgid "Use the :func:`NewType` helper function to create distinct types::"
@@ -95,6 +103,9 @@ msgid ""
95103"The static type checker will treat the new type as if it were a subclass of "
96104"the original type. This is useful in helping catch logical errors::"
97105msgstr ""
106+ "O verificador de tipo estático tratará o novo tipo como se fosse uma "
107+ "subclasse do tipo original. Isso é útil para ajudar a encontrar erros de "
108+ "lógica::"
98109
99110#: ../../library/typing.rst:96
100111msgid ""
@@ -103,6 +114,11 @@ msgid ""
103114"pass in a ``UserId`` wherever an ``int`` might be expected, but will prevent "
104115"you from accidentally creating a ``UserId`` in an invalid way::"
105116msgstr ""
117+ "Você ainda pode executar todas as operações ``int`` em uma variável do tipo "
118+ "``UserId``, mas o resultado sempre será do tipo ``int``. Isso permite que "
119+ "você passe um ``UserId`` em qualquer ocasião que ``int`` possa ser esperado, "
120+ "mas previne que você acidentalmente crie um ``UserId`` de uma forma "
121+ "inválida::"
106122
107123#: ../../library/typing.rst:104
108124msgid ""