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:
parent
132f91d500
commit
fe3923a8af
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue