Skip to content

Commit 49b418a

Browse files
committed
added arbitrary_types_allowed
1 parent 46fe4d1 commit 49b418a

File tree

1 file changed

+2
-0
lines changed
  • libs/labelbox/src/labelbox/schema

1 file changed

+2
-0
lines changed

libs/labelbox/src/labelbox/schema/slice.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from pydantic import ConfigDict
12
from pydantic.dataclasses import dataclass
23
from typing import Optional, Tuple, Union
34
import warnings
@@ -36,6 +37,7 @@ class Slice(DbObject):
3637
class DataRowIdAndGlobalKey:
3738
id: UniqueId
3839
global_key: Optional[GlobalKey]
40+
model_config = ConfigDict(arbitrary_types_allowed=True)
3941

4042
def __init__(self, id: str, global_key: Optional[str]):
4143
self.id = UniqueId(id)

0 commit comments

Comments
 (0)