Skip to content

Commit 5484dcf

Browse files
committed
Update _util.py
1 parent 56487c6 commit 5484dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htmltools/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _flatten_recurse(x: Iterable[T | None], result: list[T]) -> None:
9090

9191
for item in x:
9292
if isinstance(item, TagList):
93-
_flatten_recurse(item, result)
93+
_flatten_recurse(item.data, result) # pyright: ignore[reportArgumentType]
9494
elif isinstance(item, (list, tuple)):
9595
# Don't yet know how to specify recursive generic types, so we'll tell
9696
# the type checker to ignore this line.

0 commit comments

Comments
 (0)