Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

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