From b787274edebfd08c52acd0eda1f826b2cad79466 Mon Sep 17 00:00:00 2001 From: Mike Edmunds Date: Mon, 16 Mar 2026 14:28:15 -0300 Subject: [6.0.x] 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.) Backport of 4b2edb3418851c09dd839f1a2cba74051fe9d420 from main. --- docs/topics/email.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/email.txt b/docs/topics/email.txt index d8e8f177d5..e6d297058c 100644 --- a/docs/topics/email.txt +++ b/docs/topics/email.txt @@ -409,7 +409,7 @@ email backend API :ref:`provides an alternative an exception. It will return ``1`` if the message was sent successfully, otherwise ``0``. - .. method:: message(policy=email.policy.default) + .. method:: message(*, policy=email.policy.default) Constructs and returns a Python :class:`email.message.EmailMessage` object representing the message to be sent. -- cgit v1.3