def Type(expected, message="<STR_LIT>"):
@wraps(Type)<EOL>def built(value):<EOL><INDENT>if type(value) != expected:<EOL><INDENT>raise Error(message.format(expected.__name__))<EOL><DEDENT>return value<EOL><DEDENT>return built<EOL>
Creates a validator that compares the type of the given value to
``expected``. This is a direct type() equality check. Also see
``Instance``, which is an isinstance() check.

A custom message can be specified with ``message``.