mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-31 18:34:21 -04:00
Correct annotation of _iterate_over_text
(#12860)
This commit is contained in:
parent
81d9f2a8e9
commit
e7c77a8750
2 changed files with 2 additions and 1 deletions
|
@ -281,7 +281,7 @@ def parse_html_description(tree: "etree.Element") -> Optional[str]:
|
|||
|
||||
|
||||
def _iterate_over_text(
|
||||
tree: "etree.Element", *tags_to_ignore: Iterable[Union[str, "etree.Comment"]]
|
||||
tree: "etree.Element", *tags_to_ignore: Union[str, "etree.Comment"]
|
||||
) -> Generator[str, None, None]:
|
||||
"""Iterate over the tree returning text nodes in a depth first fashion,
|
||||
skipping text nodes inside certain tags.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue