MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / deep_iterable

Function deep_iterable

src/licensedcode/_vendor/attr/validators.py:405–417  ·  view source on GitHub ↗

A validator that performs deep validation of an iterable. :param member_validator: Validator to apply to iterable members :param iterable_validator: Validator to apply to iterable itself (optional) .. versionadded:: 19.1.0 :raises TypeError: if any sub-validators fail

(member_validator, iterable_validator=None)

Source from the content-addressed store, hash-verified

403
404
405def deep_iterable(member_validator, iterable_validator=None):
406 """
407 A validator that performs deep validation of an iterable.
408
409 :param member_validator: Validator to apply to iterable members
410 :param iterable_validator: Validator to apply to iterable itself
411 (optional)
412
413 .. versionadded:: 19.1.0
414
415 :raises TypeError: if any sub-validators fail
416 """
417 return _DeepIterable(member_validator, iterable_validator)
418
419
420@attrs(repr=False, slots=True, hash=True)

Callers

nothing calls this directly

Calls 1

_DeepIterableClass · 0.85

Tested by

no test coverage detected