diff options
Diffstat (limited to '')
-rw-r--r-- | third_party/python/attrs/attr/_cmp.pyi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/python/attrs/attr/_cmp.pyi b/third_party/python/attrs/attr/_cmp.pyi new file mode 100644 index 0000000000..f3dcdc1a75 --- /dev/null +++ b/third_party/python/attrs/attr/_cmp.pyi @@ -0,0 +1,13 @@ +from typing import Any, Callable, Optional, Type + +_CompareWithType = Callable[[Any, Any], bool] + +def cmp_using( + eq: Optional[_CompareWithType] = ..., + lt: Optional[_CompareWithType] = ..., + le: Optional[_CompareWithType] = ..., + gt: Optional[_CompareWithType] = ..., + ge: Optional[_CompareWithType] = ..., + require_same_type: bool = ..., + class_name: str = ..., +) -> Type: ... |