def METHOD_NAME(self, spec, data):
    if not len(spec) == 1:
        raise SpecError('lists support only one type, got: %s' % spec)
    for i, v in enumerate(data):
        with self.context.pos('[%d]' % i):
            self._validate_part(spec[0], v)