Skip to content

Commit 5266fa8

Browse files
committed
Use Deque.
1 parent 9af4b34 commit 5266fa8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

django_unicorn/components/unicorn_template_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import logging
22
import re
33
from collections import deque
4+
from typing import Deque
45

56
import orjson
67
from bs4 import BeautifulSoup
@@ -48,7 +49,7 @@ def is_html_well_formed(html: str) -> bool:
4849
"""
4950

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

5354
for tag in tag_list:
5455
if "/" not in tag:

0 commit comments

Comments
 (0)