annotate mercurial/thirdparty/attr/_cmp.pyi @ 53042:cdd7bf612c7b
stable tip
bundle-spec: properly format boolean parameter (issue6960)
This was breaking automatic clone bundle generation. This changeset fixes it and
add a test to catch it in the future.
author |
Pierre-Yves David <pierre-yves.david@octobus.net> |
date |
Tue, 11 Mar 2025 02:29:42 +0100 |
parents |
e1c586b9a43c |
children |
|
rev |
line source |
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: ...
|