1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-07-01 14:40:00 +02:00

🔍 mypy: Make cli.process() typed so mypy checks it (and issues no warning)

This commit is contained in:
Mike Gerber 2024-01-08 19:04:36 +01:00
parent 788868b2ac
commit ac9d360dcd

View file

@ -105,14 +105,14 @@ def json_float(value):
def process(
gt,
ocr,
report_prefix,
reports_folder=".",
gt: str,
ocr: str,
report_prefix: str,
reports_folder: str = ".",
*,
metrics=True,
differences=False,
textequiv_level="region",
metrics: bool = True,
differences: bool = False,
textequiv_level: str = "region",
):
"""Check OCR result against GT.