Skip to content

Commit ce38800

Browse files
authored
Temp workaround for Cuid loading issue (#1754)
1 parent 20848c6 commit ce38800

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/labelbox/src/labelbox/schema/labeling_service.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
from datetime import datetime
22
from enum import Enum
33
from typing import Any
4+
from typing_extensions import Annotated
45

56
from labelbox.exceptions import ResourceNotFoundError
67

7-
from labelbox.data.annotation_types.types import Cuid
8-
from labelbox.pydantic_compat import BaseModel
8+
from labelbox.pydantic_compat import BaseModel, Field
99
from labelbox.utils import _CamelCaseMixin
1010

11+
Cuid = Annotated[str, Field(min_length=25, max_length=25)]
1112

1213
class LabelingServiceStatus(Enum):
1314
Accepted = 'ACCEPTED',

0 commit comments

Comments
 (0)