@@ -88,7 +88,7 @@ def disabled():
8888 set_run_validators (True )
8989
9090
91- @attrs (repr = False , slots = True , hash = True )
91+ @attrs (repr = False , slots = True , unsafe_hash = True )
9292class _InstanceOfValidator :
9393 type = attrib ()
9494
@@ -196,7 +196,7 @@ def matches_re(regex, flags=0, func=None):
196196 return _MatchesReValidator (pattern , match_func )
197197
198198
199- @attrs (repr = False , slots = True , hash = True )
199+ @attrs (repr = False , slots = True , unsafe_hash = True )
200200class _OptionalValidator :
201201 validator = attrib ()
202202
@@ -231,7 +231,7 @@ def optional(validator):
231231 return _OptionalValidator (validator )
232232
233233
234- @attrs (repr = False , slots = True , hash = True )
234+ @attrs (repr = False , slots = True , unsafe_hash = True )
235235class _InValidator :
236236 options = attrib ()
237237 _original_options = attrib (hash = False )
@@ -290,7 +290,7 @@ def in_(options):
290290 return _InValidator (options , repr_options )
291291
292292
293- @attrs (repr = False , slots = False , hash = True )
293+ @attrs (repr = False , slots = False , unsafe_hash = True )
294294class _IsCallableValidator :
295295 def __call__ (self , inst , attr , value ):
296296 """
@@ -328,7 +328,7 @@ def is_callable():
328328 return _IsCallableValidator ()
329329
330330
331- @attrs (repr = False , slots = True , hash = True )
331+ @attrs (repr = False , slots = True , unsafe_hash = True )
332332class _DeepIterable :
333333 member_validator = attrib (validator = is_callable ())
334334 iterable_validator = attrib (
@@ -377,7 +377,7 @@ def deep_iterable(member_validator, iterable_validator=None):
377377 return _DeepIterable (member_validator , iterable_validator )
378378
379379
380- @attrs (repr = False , slots = True , hash = True )
380+ @attrs (repr = False , slots = True , unsafe_hash = True )
381381class _DeepMapping :
382382 key_validator = attrib (validator = is_callable ())
383383 value_validator = attrib (validator = is_callable ())
@@ -554,7 +554,7 @@ def min_len(length):
554554 return _MinLengthValidator (length )
555555
556556
557- @attrs (repr = False , slots = True , hash = True )
557+ @attrs (repr = False , slots = True , unsafe_hash = True )
558558class _SubclassOfValidator :
559559 type = attrib ()
560560
@@ -592,7 +592,7 @@ def _subclass_of(type):
592592 return _SubclassOfValidator (type )
593593
594594
595- @attrs (repr = False , slots = True , hash = True )
595+ @attrs (repr = False , slots = True , unsafe_hash = True )
596596class _NotValidator :
597597 validator = attrib ()
598598 msg = attrib (
@@ -665,7 +665,7 @@ def not_(validator, *, msg=None, exc_types=(ValueError, TypeError)):
665665 return _NotValidator (validator , msg , exc_types )
666666
667667
668- @attrs (repr = False , slots = True , hash = True )
668+ @attrs (repr = False , slots = True , unsafe_hash = True )
669669class _OrValidator :
670670 validators = attrib ()
671671
0 commit comments