Skip to content

Commit 446a356

Browse files
committed
refactor(types): define OnBatchResult as PEP 695 generic type alias
1 parent 1215757 commit 446a356

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/infermesh/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ def __len__(self) -> int:
678678
TranscriptionBatchResult: TypeAlias = BatchResult[TranscriptionResult]
679679
"""Type alias for a batch of transcription results."""
680680

681-
OnBatchResult: TypeAlias = Callable[[int, T | None, BaseException | None], None] | None
681+
type OnBatchResult[T] = Callable[[int, T | None, BaseException | None], None] | None
682682
"""Generic callback type for per-result notifications in batch methods.
683683
684684
Called as ``on_result(index, result, error)`` each time a single request

0 commit comments

Comments
 (0)