mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 23:43:11 +01:00
Annotate function signature
This commit is contained in:
parent
80f4152301
commit
283f052c0e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user