Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openadapt_flow/vision/hashing.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def phash_png(png: bytes, region: Region | None = None) -> str:
Raises:
ValueError: If ``region`` is empty after clamping.
"""
img = Image.open(io.BytesIO(png))
img: Image.Image = Image.open(io.BytesIO(png))
if region is not None:
x, y, w, h = region
x0, y0 = max(0, x), max(0, y)
Expand Down
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,7 @@ follow_imports_for_stubs = true
# - the VLM microservice (FastAPI, dynamic): services.vlm_service.*
# - offline validation harnesses (not on the runtime path):
# validation.* (dense_surface, identity_ladder,
# pixel_identity_probe, pixel_identity_aligned,
# vlm_identity_probe)
# - perceptual hashing on numpy internals: vision.hashing
# pixel_identity_probe, vlm_identity_probe)
[[tool.mypy.overrides]]
module = [
"openadapt_flow.__main__",
Expand All @@ -437,9 +435,7 @@ module = [
"openadapt_flow.validation.dense_surface",
"openadapt_flow.validation.identity_ladder",
"openadapt_flow.validation.pixel_identity_probe",
"openadapt_flow.validation.pixel_identity_aligned",
"openadapt_flow.validation.vlm_identity_probe",
"openadapt_flow.vision.hashing",
]
ignore_errors = true

Expand Down