fix: add type checking imports for OCROptions and pluggy

Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
James R. Barlow
2025-12-21 12:21:48 -08:00
co-authored by aider
parent 4f9c4c3e52
commit 4ed0e4510c
+5 -1
View File
@@ -7,12 +7,16 @@ from __future__ import annotations
import argparse
from collections.abc import Callable, Mapping
from typing import Any, TypeVar
from typing import Any, TypeVar, TYPE_CHECKING
from ocrmypdf._defaults import DEFAULT_LANGUAGE, DEFAULT_ROTATE_PAGES_THRESHOLD
from ocrmypdf._defaults import PROGRAM_NAME as _PROGRAM_NAME
from ocrmypdf._version import __version__ as _VERSION
if TYPE_CHECKING:
import pluggy
from ocrmypdf._options import OCROptions
T = TypeVar('T', int, float)