Skip to content

Commit

Permalink
Update _core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Sep 27, 2024
1 parent 60803c3 commit c75e6f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion htmltools/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ def _repr_html_(self) -> str: ...
# =============================================================================
# TagList class
# =============================================================================
class TagList(UserList[TagNode]):
_TagListParentClass = UserList if sys.version_info <= (3, 8) else UserList[TagNode]


class TagList(_TagListParentClass):
"""
Create an HTML tag list (i.e., a fragment of HTML)
Expand Down

0 comments on commit c75e6f4

Please sign in to comment.