From 67528a7d7eed5a357cffe4dc6117e0b74554b55f Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Fri, 18 Apr 2025 03:08:24 +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: