Improve type hint

This commit is contained in:
Raphael Michel
2017-01-27 12:10:22 +01:00
parent a3cd8d151d
commit 92c2dcaf25

View File

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