diff --git a/openadapt_flow/vision/hashing.py b/openadapt_flow/vision/hashing.py index a02e18e3..6f25add5 100644 --- a/openadapt_flow/vision/hashing.py +++ b/openadapt_flow/vision/hashing.py @@ -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) diff --git a/pyproject.toml b/pyproject.toml index ddb27edd..5dc19220 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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__", @@ -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