Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

14 wiersze
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: ...