Skip to content

Commit 0ee09e6

Browse files
committed
nodes.new_tag_node: Refines type annotation
1 parent fabe509 commit 0ee09e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_delb/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def new_tag_node(
333333
local_name: str,
334334
attributes: Optional[dict[AttributeAccessor, str] | TagAttributes] = None,
335335
namespace: Optional[str] = None,
336-
children: Sequence[NodeSource] = (),
336+
children: Iterable[NodeSource] = (),
337337
) -> TagNode:
338338
"""
339339
Creates a new :class:`TagNode` instance outside any context. It is preferable to
@@ -343,7 +343,7 @@ def new_tag_node(
343343
:param local_name: The tag name.
344344
:param attributes: Optional attributes that are assigned to the new node.
345345
:param namespace: An optional tag namespace.
346-
:param children: An optional sequence of objects that will be appended as child
346+
:param children: An optional iterable of objects that will be appended as child
347347
nodes. This can be existing nodes, strings that will be inserted
348348
as text nodes and in-place definitions of :class:`TagNode`
349349
instances from :func:`tag`. The latter will be assigned to the

0 commit comments

Comments
 (0)