From 0e6e55a920b045cec6641880d4fece402e9d5808 Mon Sep 17 00:00:00 2001
From: gridtime <workispleasure@pleasureiswork.net>
Date: Tue, 6 Feb 2024 11:48:03 +0100
Subject: [PATCH] adjusts html saniziter settings to match expected types

---
 src/backend/html_markdown.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/backend/html_markdown.py b/src/backend/html_markdown.py
index a159ea6f..4f55b076 100644
--- a/src/backend/html_markdown.py
+++ b/src/backend/html_markdown.py
@@ -268,11 +268,11 @@ class HTMLProcessor:
         return {
             "tags": inline_tags if inline else all_tags,
             "attributes": inlines_attributes if inline else attributes,
-            "empty": {} if inline else {"hr", "br", "img"},
-            "separate": {"a"} if inline else {
+            "empty": set() if inline else set({"hr", "br", "img"}),
+            "separate": set({"a"}) if inline else set({
                 "a", "p", "li", "table", "tr", "th", "td", "br", "hr", "img",
-            },
-            "whitespace": {},
+            }),
+            "whitespace": set(),
             "keep_typographic_whitespace": True,
             "add_nofollow": False,
             "autolink": {