attrs/changelog.d/1010.change.rst

2 lines
243 B
ReStructuredText
Raw Normal View History

2022-09-04 11:55:02 +00:00
Added ``attrs.validators.not_(wrapped_validator)`` to logically invert *wrapped_validator* by accepting only values where *wrapped_validator* rejects the value with a ``ValueError`` or ``TypeError`` (by default, exception types configurable).