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

Function mainify

sdk/python/feast/transformation/base.py:126–130  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

124 owner: Optional[str] = "",
125):
126 def mainify(obj):
127 # Needed to allow dill to properly serialize the udf. Otherwise, clients will need to have a file with the same
128 # name as the original file defining the sfv.
129 if obj.__module__ != "__main__":
130 obj.__module__ = "__main__"
131
132 def decorator(user_function):
133 udf_string = dill.source.getsource(user_function)

Callers 1

decoratorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected