Skip to content

Datatype validators

MustBeA(arg_type, *, err_msg=None, extra_msg_args=None)

Bases: Validator

Validates that the value is of the specified type.

PARAMETER DESCRIPTION
arg_type

The type to validate against.

TYPE: Type[T]