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.
2 parents e1dbb8e + dddfd12 commit a2c0ebbCopy full SHA for a2c0ebb
src/superannotate_schemas/__init__.py
@@ -6,12 +6,9 @@
6
7
from superannotate_schemas.validators import AnnotationValidators
8
9
-
10
-__version__ = '1.0.40'
11
+__version__ = '1.0.41b1'
12
13
__all__ = [
14
"__version__",
15
"AnnotationValidators"
16
]
17
src/superannotate_schemas/schemas/base.py
@@ -249,5 +249,4 @@ class HexColor(BaseModel):
249
250
@validator("__root__")
251
def validate_color(cls, v):
252
- color = Color(v)
253
- return color.as_hex()
+ return '#{:02X}{:02X}{:02X}'.format(*Color(v).as_rgb_tuple())
0 commit comments