Skip to content
Snippets Groups Projects
Unverified Commit e7c77a87 authored by David Robertson's avatar David Robertson Committed by GitHub
Browse files

Correct annotation of `_iterate_over_text` (#12860)

parent 81d9f2a8
No related branches found
No related tags found
No related merge requests found
Correct a type annotation in the URL preview source code.
...@@ -281,7 +281,7 @@ def parse_html_description(tree: "etree.Element") -> Optional[str]: ...@@ -281,7 +281,7 @@ def parse_html_description(tree: "etree.Element") -> Optional[str]:
def _iterate_over_text( 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]: ) -> Generator[str, None, None]:
"""Iterate over the tree returning text nodes in a depth first fashion, """Iterate over the tree returning text nodes in a depth first fashion,
skipping text nodes inside certain tags. skipping text nodes inside certain tags.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment