Skip to content

DOC: document authorized_imports and max_print_outputs_length in evaluate_python_code - #2952

Open
ioseba wants to merge 1 commit into
huggingface:mainfrom
ioseba:fix-2372-evaluate-python-code-docstring
Open

ioseba wants to merge 1 commit into
huggingface:mainfrom
ioseba:fix-2372-evaluate-python-code-docstring

Conversation

@ioseba

@ioseba ioseba commented Oct 10, 2026

Copy link
Copy Markdown

Fixes #2372.

Description

In src/smolagents/local_python_executor.py, evaluate_python_code() takes authorized_imports and max_print_outputs_length, but these parameters were omitted from the Args section in its docstring.

This PR documents both parameters with their respective types, optionality, and defaults, and adds a unit test in tests/test_local_python_executor.py verifying that all parameters from evaluate_python_code()'s signature are documented.

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.

DOC: evaluate_python_code docstring is missing two parameters

1 participant