[docs] fix typo
Browse files
src/utilities/serialize.py
CHANGED
@@ -5,7 +5,7 @@ from src import app_logger
|
|
5 |
from src.utilities.type_hints import ts_dict_str2, ts_dict_str3
|
6 |
|
7 |
|
8 |
-
def serialize(obj: any, include_none: bool = False)
|
9 |
"""
|
10 |
Return the input object into a serializable one
|
11 |
|
@@ -14,7 +14,7 @@ def serialize(obj: any, include_none: bool = False) -> object:
|
|
14 |
include_none: bool to indicate if include also keys with None values during dict serialization
|
15 |
|
16 |
Returns:
|
17 |
-
|
18 |
|
19 |
"""
|
20 |
return _serialize(obj, include_none)
|
|
|
5 |
from src.utilities.type_hints import ts_dict_str2, ts_dict_str3
|
6 |
|
7 |
|
8 |
+
def serialize(obj: any, include_none: bool = False):
|
9 |
"""
|
10 |
Return the input object into a serializable one
|
11 |
|
|
|
14 |
include_none: bool to indicate if include also keys with None values during dict serialization
|
15 |
|
16 |
Returns:
|
17 |
+
any: serialized object
|
18 |
|
19 |
"""
|
20 |
return _serialize(obj, include_none)
|
src/utilities/type_hints.py
CHANGED
@@ -19,7 +19,7 @@ class LatLngDict(BaseModel):
|
|
19 |
|
20 |
|
21 |
class PromptType(str, Enum):
|
22 |
-
"""Segment
|
23 |
point = "point"
|
24 |
# rectangle = "rectangle"
|
25 |
|
|
|
19 |
|
20 |
|
21 |
class PromptType(str, Enum):
|
22 |
+
"""Segment Anything enumeration prompt type"""
|
23 |
point = "point"
|
24 |
# rectangle = "rectangle"
|
25 |
|