From 8ae0bd904d6147ce37750fa7ec336f951c14495c Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sun, 12 Dec 2021 10:25:50 +0100 Subject: [PATCH] Add _CompareWithType (#884) It got accidentally removed in https://github.com/python-attrs/attrs/pull/787/commits/6f5c5ce42f5c406e446dd3d4863c17f61c7254a7 --- src/attr/__init__.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/src/attr/__init__.pyi b/src/attr/__init__.pyi index 610eced79..a2b23dcc6 100644 --- a/src/attr/__init__.pyi +++ b/src/attr/__init__.pyi @@ -51,6 +51,7 @@ _OnSetAttrArgType = Union[ _FieldTransformer = Callable[ [type, List[Attribute[Any]]], List[Attribute[Any]] ] +_CompareWithType = Callable[[Any, Any], bool] # FIXME: in reality, if multiple validators are passed they must be in a list # or tuple, but those are invariant and so would prevent subtypes of # _ValidatorType from working when passed in a list or tuple.