def __call__(self, func):
        def assert_keywords_and_call(*args, **kwargs):
            for field, message in iteritems(self.messages):
                if field in kwargs:
                    raise TypeError(message)
            return func(*args, **kwargs)
        return assert_keywords_and_call
dataset/ETHPy150Open quantopian/zipline/zipline/utils/input_validation.py/error_keywords.__call__/original