Skip to content

Commit 4ac360c

Browse files
committed
Pydantic v2 requirements for Optional
1 parent df16843 commit 4ac360c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/clip_api_service/service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525

2626

2727
class Item(BaseItem):
28-
text: Optional[str] # noqa: UP007
29-
img_uri: Optional[str] # noqa: UP007
30-
img_blob: Optional[str] # noqa: UP007
28+
text: Optional[str] = None
29+
img_uri: Optional[str] = None
30+
img_blob: Optional[str] = None
3131

3232

3333
class ItemList(ListModel):

0 commit comments

Comments
 (0)