

def __init__(self, cls_or_instance, **kwargs):
    super(List, self).__init__(**kwargs)
    error_msg = 'The type of the list elements must be a subclass of flask_restful.fields.Raw'
    if isinstance(cls_or_instance, type):
        if (not issubclass(cls_or_instance, Raw)):
            raise MarshallingException(error_msg)
        self.container = cls_or_instance()
    else:
        if (not isinstance(cls_or_instance, Raw)):
            raise MarshallingException(error_msg)
        self.container = cls_or_instance

dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/fields.py List.__init__/original