Wrap a function with attributes
(**kwargs)
| 252 | |
| 253 | |
| 254 | def wrap_embedding_func_with_attrs(**kwargs): |
| 255 | """Wrap a function with attributes""" |
| 256 | |
| 257 | def final_decro(func) -> EmbeddingFunc: |
| 258 | new_func = EmbeddingFunc(**kwargs, func=func) |
| 259 | return new_func |
| 260 | |
| 261 | return final_decro |
nothing calls this directly
no outgoing calls
no test coverage detected