1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-09 20:00:01 +02:00

🐛 dinglehopper: Fix alto_extract()'s type annotation

This commit is contained in:
Gerber, Mike 2020-11-12 19:19:05 +01:00
parent 132f91d500
commit fe3923a8af

View file

@ -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)