🐛 dinglehopper: Fix alto_extract()'s type annotation

pull/49/head
Gerber, Mike 4 years ago
parent 132f91d500
commit fe3923a8af

@ -35,7 +35,7 @@ def alto_extract_lines(tree: ET.ElementTree) -> Generator[ExtractedText, None, N
# FIXME hardcoded SBB normalization # FIXME hardcoded SBB normalization
def alto_extract(tree: ET.ElementTree()) -> ExtractedText: def alto_extract(tree: ET.ElementTree) -> ExtractedText:
"""Extract text from the given ALTO ElementTree.""" """Extract text from the given ALTO ElementTree."""
return ExtractedText(None, list(alto_extract_lines(tree)), "\n", None) return ExtractedText(None, list(alto_extract_lines(tree)), "\n", None)

Loading…
Cancel
Save