_cmp.pyi 399 B

12345678910111213
  1. from typing import Any, Callable, Optional, Type
  2. _CompareWithType = Callable[[Any, Any], bool]
  3. def cmp_using(
  4. eq: Optional[_CompareWithType] = ...,
  5. lt: Optional[_CompareWithType] = ...,
  6. le: Optional[_CompareWithType] = ...,
  7. gt: Optional[_CompareWithType] = ...,
  8. ge: Optional[_CompareWithType] = ...,
  9. require_same_type: bool = ...,
  10. class_name: str = ...,
  11. ) -> Type: ...