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 56487c6 commit 5484dcfCopy full SHA for 5484dcf
htmltools/_util.py
@@ -90,7 +90,7 @@ def _flatten_recurse(x: Iterable[T | None], result: list[T]) -> None:
90
91
for item in x:
92
if isinstance(item, TagList):
93
- _flatten_recurse(item, result)
+ _flatten_recurse(item.data, result) # pyright: ignore[reportArgumentType]
94
elif isinstance(item, (list, tuple)):
95
# Don't yet know how to specify recursive generic types, so we'll tell
96
# the type checker to ignore this line.
0 commit comments