Skip to content

Commit

Permalink
Add _CompareWithType (#884)
Browse files Browse the repository at this point in the history
It got accidentally removed in 6f5c5ce
  • Loading branch information
hynek committed Dec 12, 2021
1 parent dfa725b commit 8ae0bd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/attr/__init__.pyi
Expand Up @@ -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.
Expand Down

0 comments on commit 8ae0bd9

Please sign in to comment.