(user_function)
| 130 | obj.__module__ = "__main__" |
| 131 | |
| 132 | def decorator(user_function): |
| 133 | udf_string = dill.source.getsource(user_function) |
| 134 | mainify(user_function) |
| 135 | transformation_obj = Transformation( |
| 136 | mode=mode, |
| 137 | name=name or user_function.__name__, |
| 138 | tags=tags, |
| 139 | description=description, |
| 140 | owner=owner, |
| 141 | udf=user_function, |
| 142 | udf_string=udf_string, |
| 143 | ) |
| 144 | functools.update_wrapper(wrapper=transformation_obj, wrapped=user_function) |
| 145 | return transformation_obj |
| 146 | |
| 147 | return decorator |
nothing calls this directly
no test coverage detected