Skip to content

Commit f0b39d4

Browse files
authored
Fix type parsing for deprecated arguments (#17832)
1 parent 3267b9d commit f0b39d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddleocr/_pipelines/ocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def _update_subparser(self, subparser):
672672
subparser.add_argument(
673673
"--" + name,
674674
action=DeprecatedOptionAction,
675-
type=str,
675+
type=deprecated_arg_types[name],
676676
help=f"[Deprecated] Please use `--{new_name}` instead.",
677677
)
678678

0 commit comments

Comments
 (0)