ruff: Appease SIM118 "class" not in uncle.keys().

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 36dde99308)
This commit is contained in:
Anders Kaseorg
2023-08-10 11:12:35 -07:00
committed by Alex Vandiver
parent 43b09fd89d
commit 4ac849d006

View File

@@ -1136,7 +1136,7 @@ class InlineInterestingLinkProcessor(markdown.treeprocessors.Treeprocessor):
}
if (
uncle.tag != "div"
or "class" not in uncle.keys()
or "class" not in uncle.attrib
or not (set(uncle.attrib["class"].split()) & inline_image_classes)
):
return insertion_index