Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Correct annotation of _iterate_over_text (#12860)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed May 24, 2022
1 parent 81d9f2a commit e7c77a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/12860.misc
@@ -0,0 +1 @@
Correct a type annotation in the URL preview source code.
2 changes: 1 addition & 1 deletion synapse/rest/media/v1/preview_html.py
Expand Up @@ -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.
Expand Down

0 comments on commit e7c77a8

Please sign in to comment.