mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-01-26 16:27:51 -05:00
eval will be here once I find a different way to parse types into python Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
14 lines
398 B
Python
14 lines
398 B
Python
from typing import Any, Callable, Optional
|
|
|
|
_CompareWithType = Callable[[Any, Any], bool]
|
|
|
|
def cmp_using(
|
|
eq: Optional[_CompareWithType] = ...,
|
|
lt: Optional[_CompareWithType] = ...,
|
|
le: Optional[_CompareWithType] = ...,
|
|
gt: Optional[_CompareWithType] = ...,
|
|
ge: Optional[_CompareWithType] = ...,
|
|
require_same_type: bool = ...,
|
|
class_name: str = ...,
|
|
) -> type[Any]: ...
|