Skip to content

Commit 986c6ba

Browse files
remove Union usage
1 parent 5e0af47 commit 986c6ba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

fastembed/late_interaction_multimodal/colpali.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def embed_image(
301301

302302
def get_image_mask(
303303
self,
304-
images: Union[ImageInput, Iterable[ImageInput]],
304+
images: ImageInput | Iterable[ImageInput],
305305
batch_size: int = 16,
306306
**kwargs: Any,
307307
) -> list[NumpyArray]:

fastembed/late_interaction_multimodal/late_interaction_multimodal_embedding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def token_count(
186186

187187
def get_image_mask(
188188
self,
189-
images: Union[ImageInput, Iterable[ImageInput]],
189+
images: ImageInput | Iterable[ImageInput],
190190
batch_size: int = 16,
191191
**kwargs: Any,
192192
) -> list[NumpyArray]:

fastembed/late_interaction_multimodal/late_interaction_multimodal_embedding_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def token_count(
8787

8888
def get_image_mask(
8989
self,
90-
images: Union[ImageInput, Iterable[ImageInput]],
90+
images: ImageInput | Iterable[ImageInput],
9191
batch_size: int = 16,
9292
**kwargs: Any,
9393
) -> list[NumpyArray]:

0 commit comments

Comments
 (0)