Skip to content

Commit 714a630

Browse files
fixed Pydantic warning
1 parent 6c46ef7 commit 714a630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegate/db/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def nd_array_custom_serializer(x):
276276
NdArray = Annotated[
277277
np.ndarray,
278278
BeforeValidator(nd_array_custom_before_validator),
279-
PlainSerializer(nd_array_custom_serializer, return_type=str),
279+
PlainSerializer(nd_array_custom_serializer, return_type=np.ndarray),
280280
]
281281

282282
VALID_PERSONA_NAME_PATTERN = re.compile(r"^[a-zA-Z0-9_ -]+$")

0 commit comments

Comments
 (0)