fix(pre_commit): 🎨 auto format pre-commit hooks

This commit is contained in:
pre-commit-ci[bot] committed 2024-09-25 19:23:19 +00:00
1 parent 6fbabeefff
commit 5f86dbe29b
2 files changed
+9 -4

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
from functools import lru_cache
import math
import warnings
from functools import lru_cache
from typing import Any, Dict, Iterable, Tuple
import cv2
+8 -3
View File
@@ -254,12 +254,17 @@ class Color:
@classproperty
def ROBOFLOW(cls) -> Color:
return Color.from_hex("#A351FB")
def __hash__(self):
return hash((self.r, self.g, self.b))
def __eq__(self, other):
return isinstance(other, Color) and self.r == other.r and self.g == other.g and self.b == other.b
return (
isinstance(other, Color)
and self.r == other.r
and self.g == other.g
and self.b == other.b
)
@dataclass