⚙ cli: Annotate types in process_dir()

pull/111/head
Mike Gerber 1 month ago
parent fe1a713d55
commit 32d4037533

@ -187,8 +187,15 @@ def process(
def process_dir(
gt, ocr, report_prefix, reports_folder, *, metrics, differences, textequiv_level
):
gt: str,
ocr: str,
report_prefix: str,
reports_folder: str = ".",
*,
metrics: bool = True,
differences: bool = False,
textequiv_level: str = "region",
) -> None:
for gt_file in os.listdir(gt):
gt_file_path = os.path.join(gt, gt_file)
ocr_file_path = os.path.join(ocr, gt_file)

Loading…
Cancel
Save