From fe3923a8afe7e117cd98e20e21c688bf14ab0c8b Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Thu, 12 Nov 2020 19:19:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20dinglehopper:=20Fix=20alto=5Fext?= =?UTF-8?q?ract()'s=20type=20annotation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/dinglehopper/ocr_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qurator/dinglehopper/ocr_files.py b/qurator/dinglehopper/ocr_files.py index 4f202ca..aded486 100644 --- a/qurator/dinglehopper/ocr_files.py +++ b/qurator/dinglehopper/ocr_files.py @@ -35,7 +35,7 @@ def alto_extract_lines(tree: ET.ElementTree) -> Generator[ExtractedText, None, N # 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.""" return ExtractedText(None, list(alto_extract_lines(tree)), "\n", None)