You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 regels
368 B

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