Skip to content

Commit

Permalink
nodes.new_tag_node: Refines type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture committed Dec 16, 2024
1 parent fabe509 commit 0ee09e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _delb/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def new_tag_node(
local_name: str,
attributes: Optional[dict[AttributeAccessor, str] | TagAttributes] = None,
namespace: Optional[str] = None,
children: Sequence[NodeSource] = (),
children: Iterable[NodeSource] = (),
) -> TagNode:
"""
Creates a new :class:`TagNode` instance outside any context. It is preferable to
Expand All @@ -343,7 +343,7 @@ def new_tag_node(
:param local_name: The tag name.
:param attributes: Optional attributes that are assigned to the new node.
:param namespace: An optional tag namespace.
:param children: An optional sequence of objects that will be appended as child
:param children: An optional iterable of objects that will be appended as child
nodes. This can be existing nodes, strings that will be inserted
as text nodes and in-place definitions of :class:`TagNode`
instances from :func:`tag`. The latter will be assigned to the
Expand Down

0 comments on commit 0ee09e6

Please sign in to comment.