Skip to content

Commit

Permalink
⚙ cli: Annotate types in process_dir()
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegerber committed Apr 4, 2024
1 parent fe1a713 commit 32d4037
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/dinglehopper/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32d4037

Please sign in to comment.