From 010c31cf1039ec1b32ea459a4e5eb5e8dbc9f879 Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Sun, 23 Apr 2017 19:42:21 +0200 Subject: [PATCH] Fix type annotation --- src/pretix/base/services/mail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/base/services/mail.py b/src/pretix/base/services/mail.py index 17ae7d86e7..362461e9ac 100644 --- a/src/pretix/base/services/mail.py +++ b/src/pretix/base/services/mail.py @@ -1,5 +1,5 @@ import logging -from typing import Any, Dict, Union +from typing import Any, Dict, List, Union import bleach import cssutils @@ -138,7 +138,7 @@ def mail(email: str, subject: str, template: Union[str, LazyI18nString], @app.task -def mail_send_task(to: str, subject: str, body: str, html: str, sender: str, +def mail_send_task(to: List[str], subject: str, body: str, html: str, sender: str, event: int=None, headers: dict=None) -> bool: email = EmailMultiAlternatives(subject, body, sender, to=to, headers=headers) email.attach_alternative(inline_css(html), "text/html")