

def __get__(self, instance, cls=None):
    if (instance is None):
        return partial(cls._register_override_method, self.name)
    return partial(instance._call_udf, self.name)

dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py UserDefinedFunction.__get__/original