diff --git a/library/typing.po b/library/typing.po index a0a6fda5..dd004cd4 100644 --- a/library/typing.po +++ b/library/typing.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-01-15 22:33+0100\n" -"PO-Revision-Date: 2022-11-21 22:01+0100\n" -"Last-Translator: Jean-Michel Laprise \n" +"PO-Revision-Date: 2023-02-17 11:00+0100\n" +"Last-Translator: Nicolas Gibaud \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.4.3\n" +"X-Generator: Poedit 2.3\n" #: library/typing.rst:3 msgid ":mod:`typing` --- Support for type hints" @@ -69,12 +69,18 @@ msgid "" "`typing_extensions `_ package " "provides backports of these new features to older versions of Python." msgstr "" +"De nouvelles fonctionnalités sont souvent ajoutées au module ``typing``. Le " +"package `typing_extensions `_ " +"fournit des portages de ces nouvelles fonctionnalités aux versions " +"précédentes de Python." #: library/typing.rst:39 msgid "" "For a summary of deprecated features and a deprecation timeline, please see " "`Deprecation Timeline of Major Features`_." msgstr "" +"Pour un résumé des fonctionnalités obsolètes et celles qui vont bientôt " +"l'être, voir ``Deprecation Timeline of Major Features``_." #: library/typing.rst:44 msgid "" @@ -82,6 +88,9 @@ msgid "" "reference for type system features, useful typing related tools and typing " "best practices." msgstr "" +"La documentation sur https://typing.readthedocs.io/ sert de référence pour " +"les fonctionnalités, les outils utiles et les meilleures pratiques liés au " +"système de typage." #: library/typing.rst:51 msgid "Relevant PEPs" @@ -93,44 +102,55 @@ msgid "" "number of PEPs have modified and enhanced Python's framework for type " "annotations. These include:" msgstr "" +"Depuis l'introduction initiale des indications de type dans les :pep:`484` " +"et :pep:`483`, plusieurs PEPs ont modifiés et améliorés le framework " +"d'annotation de type. Cela inclut :" #: library/typing.rst:58 msgid ":pep:`526`: Syntax for Variable Annotations" -msgstr "" +msgstr ":pep:`526`: Syntaxe pour l'annotation de variable" #: library/typing.rst:58 msgid "" "*Introducing* syntax for annotating variables outside of function " "definitions, and :data:`ClassVar`" msgstr "" +"*Introduction* d'une syntaxe permettant d'annoter les variables autrement " +"qu'au sein de la définition d'une fonction et de :data:`ClassVar`" #: library/typing.rst:61 msgid ":pep:`544`: Protocols: Structural subtyping (static duck typing)" -msgstr "" +msgstr ":pep:`544`: Protocoles : Sous-typage structurels (typage canard)" #: library/typing.rst:61 msgid "" "*Introducing* :class:`Protocol` and the :func:" "`@runtime_checkable` decorator" msgstr "" +"*Introduction* :class:`Protocol` et le décorateur :func:" +"`@runtime_checkable`" #: library/typing.rst:64 msgid ":pep:`585`: Type Hinting Generics In Standard Collections" msgstr "" +":pep:`585`: Déclaration générique des types dans les collections natives" #: library/typing.rst:64 msgid "" "*Introducing* :class:`types.GenericAlias` and the ability to use standard " "library classes as :ref:`generic types`" msgstr "" +"*Introduction* :class:`types.GenericAlias` et la capacité à utiliser les " +"classes des librairies standards comme :ref:`types génériques`" #: library/typing.rst:66 msgid ":pep:`586`: Literal Types" -msgstr "" +msgstr ":pep:`586`: Types littéraux" #: library/typing.rst:67 msgid "*Introducing* :data:`Literal`" -msgstr "" +msgstr "*Introduit* à :data:`Literal`" #: library/typing.rst:68 msgid "" @@ -234,6 +254,8 @@ msgstr "" msgid "" "*Introducing* the :func:`@dataclass_transform` decorator" msgstr "" +"*Introduction* au décorateur :func:" +"`@dataclass_transform`" #: library/typing.rst:98 msgid "Type aliases" @@ -270,10 +292,9 @@ msgid "NewType" msgstr "*NewType*" #: library/typing.rst:137 -#, fuzzy msgid "Use the :class:`NewType` helper to create distinct types::" msgstr "" -"Aidez-vous de la fonction :func:`NewType` pour créer des types distincts ::" +"Aidez-vous de la classe :class:`NewType` pour créer des types distincts ::" #: library/typing.rst:144 msgid "" @@ -323,15 +344,14 @@ msgstr "" #: library/typing.rst:173 msgid "It is invalid to create a subtype of ``Derived``::" -msgstr "" +msgstr "La création d'un sous-type de ``Derived`` est invalide:" #: library/typing.rst:182 -#, fuzzy msgid "" "However, it is possible to create a :class:`NewType` based on a 'derived' " "``NewType``::" msgstr "" -"Cependant, il est possible de créer un :func:`NewType` basé sur un " +"Cependant, il est possible de créer un :class:`NewType` basé sur un " "``NewType`` « dérivé » ::" #: library/typing.rst:190 @@ -378,6 +398,9 @@ msgid "" "runtime cost when calling ``NewType`` over a regular function. However, " "this cost will be reduced in 3.11.0." msgstr "" +"``NewType`` est maintenant une classe (plutôt qu'une fonction). Cela " +"entraine un coût supplémentaire en temps d'exécution lors d'un appel. " +"Cependant, ce coût sera réduit dans la version 3.11.0." #: library/typing.rst:217 msgid "Callable" @@ -1765,9 +1788,9 @@ msgstr "Marquez une classe de protocole comme protocole d'exécution." msgid "" "Such a protocol can be used with :func:`isinstance` and :func:`issubclass`. " "This raises :exc:`TypeError` when applied to a non-protocol class. This " -"allows a simple-minded structural check, very similar to \"one trick " -"ponies\" in :mod:`collections.abc` such as :class:`~collections.abc." -"Iterable`. For example::" +"allows a simple-minded structural check, very similar to \"one trick ponies" +"\" in :mod:`collections.abc` such as :class:`~collections.abc.Iterable`. " +"For example::" msgstr "" "Un tel protocole peut être utilisé avec :func:`isinstance` et :func:" "`issubclass`. Cela lève :exc:`TypeError` lorsqu'il est appliqué à une classe "