Skip to content

Work on functools#225

Merged
christopheNan merged 3 commits intopython:3.7from
piotch:lib/functools
Jul 16, 2018
Merged

Work on functools#225
christopheNan merged 3 commits intopython:3.7from
piotch:lib/functools

Conversation

@piotch
Copy link
Copy Markdown
Contributor

@piotch piotch commented Jul 12, 2018

No description provided.

"l'opération pour ce type ::"
"l'attribut :func:`register` de la fonction générique. C'est un décorateur. "
"Pour les fonctions annotées avec des types, le décorateur infère le type du "
"premier argument automatiquement::"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il manque un espace insécable avant le "::". Si tu ne sais pas taper d'espace insécable, tu peux écrire " : ::" (espace, deux points, espace, deux points deux points).

"can be passed explicitly to the decorator itself::"
msgstr ""
"Pour le code qui n’utilise pas les annotations de type, l’argument du type "
"souhaité peut être passé explicitement au décorateur::"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

la même.

#: ../Doc/library/functools.rst:382
msgid "The :func:`register` attribute supports using type annotations."
msgstr ""
"L’attribut :func:`register` support l’utilisation des annotations de type."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/support/gère/ ou peut être accepte.

Copy link
Copy Markdown
Contributor

@Linkid Linkid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super :).
J'ai juste laissé une petite note pour améliorer la compréhension.

"For code which doesn't use type annotations, the appropriate type argument "
"can be passed explicitly to the decorator itself::"
msgstr ""
"Pour le code qui n’utilise pas les annotations de type, l’argument du type "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je dirais plutôt : « […] le type southaité peut être passé explicitement en argument au décorateur […] ».

Copy link
Copy Markdown
Contributor

@christopheNan christopheNan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je crois que nous avons commencé à traduire "type annotations" par "indications de types".

@christopheNan christopheNan merged commit fba81e5 into python:3.7 Jul 16, 2018
JulienPalard pushed a commit that referenced this pull request Nov 23, 2023
Closes #224

Reviewed-on: https://git.afpy.org/AFPy/python-docs-fr/pulls/225
Reviewed-by: Yannick Gingras <ygingras@noreply.localhost>
Co-authored-by: eviau <info@eviau.net>
Co-committed-by: eviau <info@eviau.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants