def pass_obj(f):
    def new_func(*args, **kwargs):
        return f(get_current_context().obj, *args, **kwargs)
    return update_wrapper(new_func, f)
Check the raw attr.
dataset/ETHPy150Open pallets/click/click/decorators.py/pass_obj--crossover with--dataset/ETHPy150Open project-fondue/python-yql/yql/tests/test_yql_object.py/YQLObjTest.test_yqlobj_raw