From 8476756815c5263d6ded9a78bbab6b86ef7f7568 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Wed, 23 Jul 2025 03:05:37 +0000 Subject: [PATCH] Use Set Literals Instead of Sets from Lists --- anymail/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anymail/message.py b/anymail/message.py index 3c1a504..f860ab1 100644 --- a/anymail/message.py +++ b/anymail/message.py @@ -98,7 +98,7 @@ class AnymailRecipientStatus: try: # message_id must be something that can be put in a set # (see AnymailStatus.set_recipient_status) - set([message_id]) + {message_id} except TypeError: raise TypeError("Invalid message_id %r is not scalar type" % message_id) if status is not None and status not in ANYMAIL_STATUSES: