Compose many validators to a single one.
| 3312 | |
| 3313 | @attrs(slots=True, unsafe_hash=True) |
| 3314 | class _AndValidator: |
| 3315 | class="st">""" |
| 3316 | Compose many validators to a single one. |
| 3317 | class="st">""" |
| 3318 | |
| 3319 | _validators = attrib() |
| 3320 | |
| 3321 | def __call__(self, inst, attr, value): |
| 3322 | for v in self._validators: |
| 3323 | v(inst, attr, value) |
| 3324 | |
| 3325 | |
| 3326 | def and_(*validators): |