chore(tools): remove unused RestrictedPython dependency #4436
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Removes the unused
RestrictedPython>=7.0dependency from tools/pyproject.toml. This dependency was declared in thesandboxandallextras but is never imported or used anywhere in the tools source code.Type of Change
Related Issues
Fixes #1137
Changes Made
sandboxoptional dependency section (lines 41-43) as it only containedRestrictedPython>=7.0RestrictedPython>=7.0from theallextra (line 52)Problem
The
RestrictedPython>=7.0package was declared as an optional dependency in thesandboxandallextras, but is never imported or used anywhere in the tools source code. This creates confusion about the package's capabilities.Evidence
grep -r "RestrictedPython" tools/srcreturns 0 resultsexec(),eval(), orcompile()calls that would require restricted executiontools/src/aden_tools/tools/file_system_toolkits/security.py), not Python code execution sandboxingImpact
Testing
RestrictedPythoncd tools && uv run pytest tests/)make check)Checklist
Screenshots (if applicable)
N/A - This is a dependency configuration change with no UI impact.