Skip to content

Commit 7da6571

Browse files
authored
Merge pull request #379 from OpenAdaptAI/codex/adopt-pr332-mypy-cleanup
chore(types): adopt PR #332 mypy cleanup
2 parents 51bd075 + b00b724 commit 7da6571

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

openadapt_flow/vision/hashing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def phash_png(png: bytes, region: Region | None = None) -> str:
3838
Raises:
3939
ValueError: If ``region`` is empty after clamping.
4040
"""
41-
img = Image.open(io.BytesIO(png))
41+
img: Image.Image = Image.open(io.BytesIO(png))
4242
if region is not None:
4343
x, y, w, h = region
4444
x0, y0 = max(0, x), max(0, y)

pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,7 @@ follow_imports_for_stubs = true
428428
# - the VLM microservice (FastAPI, dynamic): services.vlm_service.*
429429
# - offline validation harnesses (not on the runtime path):
430430
# validation.* (dense_surface, identity_ladder,
431-
# pixel_identity_probe, pixel_identity_aligned,
432-
# vlm_identity_probe)
433-
# - perceptual hashing on numpy internals: vision.hashing
431+
# pixel_identity_probe, vlm_identity_probe)
434432
[[tool.mypy.overrides]]
435433
module = [
436434
"openadapt_flow.__main__",
@@ -450,9 +448,7 @@ module = [
450448
"openadapt_flow.validation.dense_surface",
451449
"openadapt_flow.validation.identity_ladder",
452450
"openadapt_flow.validation.pixel_identity_probe",
453-
"openadapt_flow.validation.pixel_identity_aligned",
454451
"openadapt_flow.validation.vlm_identity_probe",
455-
"openadapt_flow.vision.hashing",
456452
]
457453
ignore_errors = true
458454

0 commit comments

Comments
 (0)