Skip to content

Commit 2792b34

Browse files
committed
fix(types): fix update collection type to include curation & synonyms
1 parent d562130 commit 2792b34

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/typesense/types/collection.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,15 @@ class CollectionUpdateSchema(typing.TypedDict):
225225
226226
"""
227227

228-
fields: typing.List[
229-
typing.Union[
230-
RegularCollectionFieldSchema,
231-
ReferenceCollectionFieldSchema,
232-
DropCollectionFieldSchema,
228+
fields: typing.NotRequired[
229+
typing.List[
230+
typing.Union[
231+
RegularCollectionFieldSchema,
232+
ReferenceCollectionFieldSchema,
233+
DropCollectionFieldSchema,
234+
]
233235
]
234236
]
237+
synonym_sets: typing.NotRequired[typing.List[str]]
238+
curation_sets: typing.NotRequired[typing.List[str]]
239+

0 commit comments

Comments
 (0)