Skip to content

Commit 6f75dd8

Browse files
committed
import fix
1 parent ef8fdc9 commit 6f75dd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/test_grid_overlay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Add the library to path
2929
sys.path.insert(0, str(Path(__file__).parent.parent / "lib" / "idp_common_pkg"))
3030

31-
from idp_common.grid_overlay import (
31+
from idp_common.utils.grid_overlay import (
3232
add_ruler_edges,
3333
draw_bounding_boxes,
3434
add_ruler_and_draw_boxes,
@@ -44,7 +44,7 @@ def convert_pdf_to_image(pdf_path: str) -> bytes:
4444
page = doc.load_page(0) # First page
4545

4646
# Render at 150 DPI for good quality
47-
pix = page.get_pixmap(dpi=150)
47+
pix = page.get_pixmap(dpi=150) # pyright: ignore[reportAttributeAccessIssue]
4848
return pix.tobytes("jpeg")
4949
except ImportError:
5050
print("ERROR: PyMuPDF (fitz) is required for PDF conversion.")

0 commit comments

Comments
 (0)