Skip to content

The call.func parameter type of the local_python_executor.evaluate_call function might be ast.Subscript #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

nvrxq
Copy link
Contributor

@nvrxq nvrxq commented Jan 14, 2025

fix for #181.
btw:

   elif name.id in custom_tools:
        return custom_tools[name.id]

to allow a list of objects, like :

def my_func():
    do_smth()
list = [my_func, my_func] 

Now we get the error:
The variable my_func is not defined.

@aymeric-roucher aymeric-roucher merged commit a22c221 into huggingface:main Jan 15, 2025
0 of 3 checks passed
@aymeric-roucher
Copy link
Contributor

Thank you @nvrxq !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants