

def add_property(obj, method_name, method_, *args, **kwargs):
    m = make_method(method_name, partial(obj, *args, **kwargs))
    setattr(obj, method_name, property(m))

dataset/ETHPy150Open hyde/hyde/hyde/util.py add_property/VarMisuse@28/36 `method_`->`obj`