您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

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