API Documentation

Runtime validation library for attrs data classes.

attrs_strict.type_validator(empty_ok=True)[source]

Validates the attributes using the type argument specified. If the type argument is not present, the attribute is considered valid.

Parameters:empty_ok – Boolean flag that indicates if the field can be empty in case of a collection or None for builtin types.
exception attrs_strict.AttributeTypeError(container, attribute)[source]
exception attrs_strict.BadTypeError[source]
exception attrs_strict.UnionError(container, attribute, expected_type)[source]
exception attrs_strict.TupleError(container, attribute, tuple_types)[source]
exception attrs_strict.TypeValidationError[source]