fix: ruff UP037 — unquote the fingerprint_path return annotation
Build images / sign-extension (push) Successful in 3s
Build images / build-agent (push) Successful in 5s
CI / lint (push) Successful in 2s
CI / extension-version (push) Successful in 2s
CI / frontend-build (push) Successful in 25s
CI / backend-lint-and-test (push) Successful in 34s
Build images / build-web (push) Successful in 1m24s
Build images / smoke-web (push) Skipped
Build images / build-ml (push) Successful in 2m35s
Build images / promote (push) Skipped
CI / integration (push) Successful in 2m52s

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) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LVjrnpQjRgHdvq95rASoiR
This commit is contained in:
2026-09-21 00:17:15 -04:00
co-authored by Claude Opus 5
parent a05cb66635
commit 84f873eb1b
+1 -1
View File
@@ -112,7 +112,7 @@ def fingerprint(pil_image):
return None 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 """`fingerprint` for a file on disk. None if it cannot be read — which
the gate treats as "not a duplicate".""" the gate treats as "not a duplicate"."""
try: try: