From 92c2dcaf253270e08fe078173f1977f6b8c99e81 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 27 Jan 2017 12:10:22 +0100 Subject: [PATCH] Improve type hint --- 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 3b6a1149c..5eed28c37 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 +from typing import Any, Dict, Union import bleach import cssutils @@ -30,7 +30,7 @@ class SendMailException(Exception): pass -def mail(email: str, subject: str, template: str, +def mail(email: str, subject: str, template: Union[str, LazyI18nString], context: Dict[str, Any]=None, event: Event=None, locale: str=None, order: Order=None, headers: dict=None): """