We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60803c3 commit c75e6f4Copy full SHA for c75e6f4
htmltools/_core.py
@@ -254,7 +254,10 @@ def _repr_html_(self) -> str: ...
254
# =============================================================================
255
# TagList class
256
257
-class TagList(UserList[TagNode]):
+_TagListParentClass = UserList if sys.version_info <= (3, 8) else UserList[TagNode]
258
+
259
260
+class TagList(_TagListParentClass):
261
"""
262
Create an HTML tag list (i.e., a fragment of HTML)
263
0 commit comments