mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-01-21 22:10:45 -05:00
15 lines
543 B
Python
Generated
15 lines
543 B
Python
Generated
import sys
|
|
|
|
from typing import Any
|
|
from typing import Callable
|
|
from typing import Optional
|
|
|
|
if sys.version_info[:2] >= (3, 10):
|
|
from typing import TypeAlias
|
|
else:
|
|
from typing_extensions import TypeAlias
|
|
|
|
_CompareWithType: TypeAlias = 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]: ...
|