Annotate function signature

This commit is contained in:
Martin Whitehouse 2022-07-25 01:47:00 +02:00
parent 80f4152301
commit 283f052c0e
No known key found for this signature in database
GPG Key ID: 3FCE1D3E9DEC09C1

View File

@ -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)