Skip to content

Commit

Permalink
Use Deque.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamghill committed Jul 28, 2024
1 parent 9af4b34 commit 5266fa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_unicorn/components/unicorn_template_response.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
import re
from collections import deque
from typing import Deque

import orjson
from bs4 import BeautifulSoup
Expand Down Expand Up @@ -48,7 +49,7 @@ def is_html_well_formed(html: str) -> bool:
"""

tag_list = re.split("(<[^>!]*>)", html)[1::2]
stack: deque[str] = deque()
stack: Deque[str] = deque()

for tag in tag_list:
if "/" not in tag:
Expand Down

0 comments on commit 5266fa8

Please sign in to comment.