Skip to content

types

LegacyNormalPredictFunction module-attribute

LegacyNormalPredictFunction = Callable[[bytes], Any]

LegacyBatchPredictFunction module-attribute

LegacyBatchPredictFunction = Callable[[Sequence[bytes]], Sequence[Any]]

NormalPredictFunction module-attribute

NormalPredictFunction = Callable[[Mapping[str, bytes]], Mapping[str, bytes]]

BatchPredictFunction module-attribute

BatchPredictFunction = Callable[[Sequence[Mapping[str, bytes]]], Sequence[Mapping[str, bytes]]]

LegacyPredictFunction module-attribute

LegacyPredictFunction = Union[LegacyNormalPredictFunction, LegacyBatchPredictFunction]

PredictFunction module-attribute

PredictFunction = Union[LegacyPredictFunction, NormalPredictFunction, BatchPredictFunction]