in pulsar/schema/definition.py [0:0]
def _check_record_or_field(x):
if (type(x) is type and not issubclass(x, Record)) \
and not isinstance(x, Field):
raise Exception('Argument ' + _string_representation(x) + ' is not a Record or a Field')