選択できるのは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: ...