author | Raphaël Gomès <rgomes@octobus.net> |
Thu, 18 Jul 2024 12:36:12 +0200 | |
changeset 51703 | ca7bde5dbafb |
parent 49643 | e1c586b9a43c |
permissions | -rw-r--r-- |
49643 | 1 |
from typing import Any, Callable, Optional, Type |
2 |
||
3 |
_CompareWithType = Callable[[Any, Any], bool] |
|
4 |
||
5 |
def cmp_using( |
|
6 |
eq: Optional[_CompareWithType], |
|
7 |
lt: Optional[_CompareWithType], |
|
8 |
le: Optional[_CompareWithType], |
|
9 |
gt: Optional[_CompareWithType], |
|
10 |
ge: Optional[_CompareWithType], |
|
11 |
require_same_type: bool, |
|
12 |
class_name: str, |
|
13 |
) -> Type: ... |