Skip to content

Commit 4b2edb3

Browse files
medmundsnessita
authored andcommitted
Corrected signature for EmailMessage.message() in email topics docs.
Fixed the EmailMessage.message() method signature in the docs to reinforce that the `policy` argument is keyword-only. (The text already describes it correctly as keyword-only.)
1 parent 2333d56 commit 4b2edb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/topics/email.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ email backend API :ref:`provides an alternative
431431
Older versions ignored ``fail_silently=True`` when a ``connection``
432432
was also provided. This now raises a ``TypeError``.
433433

434-
.. method:: message(policy=email.policy.default)
434+
.. method:: message(*, policy=email.policy.default)
435435

436436
Constructs and returns a Python :class:`email.message.EmailMessage`
437437
object representing the message to be sent.

0 commit comments

Comments
 (0)