Skip to content

Commit ec080ae

Browse files
committed
mypy: Workaround lxml annotations being busted.
1 parent d215ea1 commit ec080ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zerver/lib/notifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def topic_narrow_url(realm, stream, topic):
7171
def relative_to_full_url(base_url, content):
7272
# type: (Text, Text) -> Text
7373
# Convert relative URLs to absolute URLs.
74-
elem = lxml.html.fromstring(content)
74+
elem = lxml.html.fromstring(content) # type: ignore # https://github.com/python/typeshed/issues/525
7575
elem.make_links_absolute(base_url)
76-
content = lxml.html.tostring(elem).decode("utf-8")
76+
content = lxml.html.tostring(elem).decode("utf-8") # type: ignore # https://github.com/python/typeshed/issues/525
7777

7878
# Inline images can't be displayed in the emails as the request
7979
# from the mail server can't be authenticated because it has no

0 commit comments

Comments
 (0)