From 84f873eb1bfb16eed6b1890268a3da25e89c695f Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 21 Sep 2026 00:17:15 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20ruff=20UP037=20=E2=80=94=20unquote=20the?= =?UTF-8?q?=20fingerprint=5Fpath=20return=20annotation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PIL's Image is imported at module scope, so the annotation never needed to be a string. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01LVjrnpQjRgHdvq95rASoiR --- backend/app/utils/phash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/utils/phash.py b/backend/app/utils/phash.py index f2d2ba0..b92f991 100644 --- a/backend/app/utils/phash.py +++ b/backend/app/utils/phash.py @@ -112,7 +112,7 @@ def fingerprint(pil_image): return None -def fingerprint_path(path) -> "Image.Image | None": +def fingerprint_path(path) -> Image.Image | None: """`fingerprint` for a file on disk. None if it cannot be read — which the gate treats as "not a duplicate".""" try: