From 283f052c0e72ce9d282eb290707b7bac221cd6ee Mon Sep 17 00:00:00 2001 From: Martin Whitehouse Date: Mon, 25 Jul 2022 01:47:00 +0200 Subject: [PATCH] Annotate function signature --- helpdesk/email.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helpdesk/email.py b/helpdesk/email.py index c7ab39ce..8f998823 100644 --- a/helpdesk/email.py +++ b/helpdesk/email.py @@ -506,7 +506,10 @@ def create_object_from_email_message(message, ticket_id, payload, files, logger) return ticket -def object_from_message(message, queue, logger): +def object_from_message(message: str, + queue: Queue, + logger: logging.Logger + ) -> Ticket: # 'message' must be an RFC822 formatted message. message = email.message_from_string(message)