fix(pre_commit): 🎨 auto format pre-commit hooks
This commit is contained in:
1 parent
6fbabeefff
commit
5f86dbe29b
2 files changed
+9
-4
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user