chore: update deprecation note for OcrEngine (#2200)

This commit updates the deprecated note to correctly point to
get_ocr_factory().registered_kind.

Signed-off-by: Alina Ryan <aliryan@redhat.com>
This commit is contained in:
Alina Ryan
2025-09-05 02:24:14 -04:00
committed by GitHub
parent 3419c42f10
commit 2c3f6faf3d

View File

@@ -237,7 +237,9 @@ class PdfBackend(str, Enum):
# Define an enum for the ocr engines
@deprecated("Use ocr_factory.registered_enum")
@deprecated(
"Use get_ocr_factory().registered_kind to get a list of registered OCR engines."
)
class OcrEngine(str, Enum):
"""Enum of valid OCR engines."""