MCPcopy Index your code
hub / github.com/feast-dev/feast / decorator

Function decorator

sdk/python/feast/transformation/base.py:132–145  ·  view source on GitHub ↗
(user_function)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

TransformationClass · 0.85
mainifyFunction · 0.70

Tested by

no test coverage detected