view mercurial/thirdparty/attr/_cmp.pyi @ 50042:237e9d2e1c71

dirstate: use `dirstate.change_files` to scope the change in `amend` This is the way.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 14 Dec 2022 00:47:22 +0100
parents e1c586b9a43c
children
line wrap: on
line source

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