mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-14 09:18:04 -05:00
* Replace OpenDevin with OpenHands * Update CONTRIBUTING.md * Update README.md * Update README.md * update poetry lock; move opendevin folder to openhands * fix env var * revert image references in docs * revert permissions * revert permissions --------- Co-authored-by: Xingyao Wang <xingyao6@illinois.edu>
12 lines
353 B
Python
12 lines
353 B
Python
from types import ModuleType
|
|
|
|
|
|
def import_functions(
|
|
module: ModuleType, function_names: list[str], target_globals: dict
|
|
) -> None:
|
|
for name in function_names:
|
|
if hasattr(module, name):
|
|
target_globals[name] = getattr(module, name)
|
|
else:
|
|
raise ValueError(f'Function {name} not found in {module.__name__}')
|