MCPcopy
hub / github.com/python-attrs/attrs / _AndValidator

Class _AndValidator

src/attr/_make.py:3314–3323  ·  src/attr/_make.py::_AndValidator

Compose many validators to a single one.

Source from the content-addressed store, hash-verified

3312
3313@attrs(slots=True, unsafe_hash=True)
3314class _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
3326def and_(*validators):

Callers 4

and_Function · 0.85
optionalFunction · 0.85

Calls 1

attribFunction · 0.85