def _wrap(self, i):
if not inspect.ismethod(i):
return i
# create a wrapper function
# that hijacks any ColumnValueMixins
def _wrapper(*args, **kwargs):
result = i(*args, **kwargs)
if not isinstance(result, md_operators.ColumnValueMixin):
return result
result.column = self
return result
return _wrapper
评论列表
文章目录