From fc284695cbdbb41dcdccf46e1dfd3ca9856ff670 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Sun, 12 Jan 2025 03:05:30 +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: