From 871f51c270726fb76502570dcbf919ce747721d1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Feb 2024 09:29:17 +0000 Subject: Bump lxml-stubs from 0.4.0 to 0.5.1 (#16885) --- synapse/media/preview_html.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'synapse/media/preview_html.py') diff --git a/synapse/media/preview_html.py b/synapse/media/preview_html.py index 8a2c098d53..62ce7789be 100644 --- a/synapse/media/preview_html.py +++ b/synapse/media/preview_html.py @@ -160,8 +160,7 @@ def decode_body( # Attempt to parse the body. Returns None if the body was successfully # parsed, but no tree was found. - # TODO Develop of lxml-stubs has this correct. - return etree.fromstring(body, parser) # type: ignore[arg-type] + return etree.fromstring(body, parser) def _get_meta_tags( -- cgit 1.5.1