We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57a1576 commit a713250Copy full SHA for a713250
src/cleanvision/issue_managers/duplicate_issue_manager.py
@@ -18,7 +18,7 @@
18
def get_hash(image: Image.Image, params: Dict[str, Any]) -> str:
19
hash_type, hash_size = params["hash_type"], params.get("hash_size", None)
20
supported_types = ["md5", "whash", "phash", "ahash", "dhash", "chash"]
21
- if not hash_type in supported_types:
+ if hash_type not in supported_types:
22
raise ValueError(f"Hash type `{hash_type}` is not supported. Must be one of: {supported_types}")
23
24
if hash_type == "md5":
0 commit comments