chore: Stringify incompatible typing hints

This commit is contained in:
Gavin D'souza 2022-06-29 10:56:05 +05:30
parent bd3d7bf3ed
commit 091debb14f

View file

@ -69,7 +69,7 @@ def get_emails_sent_today(email_account=None):
def get_unsubscribe_message(
unsubscribe_message: str, expose_recipients: str
) -> frappe._dict[str, str]:
) -> "frappe._dict[str, str]":
unsubscribe_message = unsubscribe_message or _("Unsubscribe")
unsubscribe_link = f'<a href="<!--unsubscribe_url-->" target="_blank">{unsubscribe_message}</a>'
unsubscribe_html = _("{0} to stop receiving emails of this type").format(unsubscribe_link)