-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
For now we should support only functions and not class methods.
Sample code:
import importlib
import inspect
def index_module(module_name: str, funtion_indexer: FunctionIndexer):
# Import module
module = importlib.import_module(module_name)
functions = inspect.getmembers(module, inspect.isfunction)
# print({fn: isinstance(f, functools.partial) for fn, f in functions})
funtion_indexer.index_functions([f for _, f in functions])Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request