From ec080aed6b0fad832b270d6612530cdbcd39a814 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 8 Oct 2017 12:38:20 -0700 Subject: [PATCH] mypy: Workaround lxml annotations being busted. --- zerver/lib/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/lib/notifications.py b/zerver/lib/notifications.py index b55b53428e..a80201f94a 100644 --- a/zerver/lib/notifications.py +++ b/zerver/lib/notifications.py @@ -71,9 +71,9 @@ def topic_narrow_url(realm, stream, topic): def relative_to_full_url(base_url, content): # type: (Text, Text) -> Text # Convert relative URLs to absolute URLs. - elem = lxml.html.fromstring(content) + elem = lxml.html.fromstring(content) # type: ignore # https://github.com/python/typeshed/issues/525 elem.make_links_absolute(base_url) - content = lxml.html.tostring(elem).decode("utf-8") + content = lxml.html.tostring(elem).decode("utf-8") # type: ignore # https://github.com/python/typeshed/issues/525 # Inline images can't be displayed in the emails as the request # from the mail server can't be authenticated because it has no