Skip to content

Commit 4a3a290

Browse files
author
anna-charlotte
committed
fix: type hint
Signed-off-by: anna-charlotte <charlotte.gerhaher@jina.ai>
1 parent 7638d86 commit 4a3a290

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docarray/utils/apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _map(
141141

142142
def apply_batch(
143143
da: T,
144-
func: Callable[[T], Union[T, T_doc]],
144+
func: Union[Callable[[T], T], Callable[[T], T_doc]],
145145
batch_size: int,
146146
backend: str = 'thread',
147147
num_worker: Optional[int] = None,

0 commit comments

Comments
 (0)