Skip to content

Add authorized_imports in importFrom errors #506

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
Feb 9, 2025

Conversation

CalOmnie
Copy link
Contributor

@CalOmnie CalOmnie commented Feb 5, 2025

Add the list of authorized imports to the ast.ImportFrom error message, bringing it in line with the error from ast.Import

@aymeric-roucher
Copy link
Contributor

Thank you @CalOmnie !

@aymeric-roucher aymeric-roucher merged commit 01c5106 into huggingface:main Feb 9, 2025
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