mercurial/thirdparty/attr/_cmp.pyi
author Matt Harbison <matt_harbison@yahoo.com>
Wed, 23 Oct 2024 16:30:23 -0400
changeset 52067 35400ce47b64
parent 49643 e1c586b9a43c
permissions -rw-r--r--
manifest: drop the CamelCase name for `manifest.manifestdict` See 61557734c0ae for the reasoning.

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