Skip to content

Commit a2c0ebb

Browse files
authored
Merge pull request #18 from superannotateai/develop
Develop
2 parents e1dbb8e + dddfd12 commit a2c0ebb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/superannotate_schemas/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66

77
from superannotate_schemas.validators import AnnotationValidators
88

9-
10-
__version__ = '1.0.40'
11-
9+
__version__ = '1.0.41b1'
1210

1311
__all__ = [
1412
"__version__",
1513
"AnnotationValidators"
1614
]
17-

src/superannotate_schemas/schemas/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,4 @@ class HexColor(BaseModel):
249249

250250
@validator("__root__")
251251
def validate_color(cls, v):
252-
color = Color(v)
253-
return color.as_hex()
252+
return '#{:02X}{:02X}{:02X}'.format(*Color(v).as_rgb_tuple())

0 commit comments

Comments
 (0)