Skip to content

Fix: __new__ method only accepts class object, remove **args and **kw… #1462

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 3 commits into from
Jun 22, 2025

Conversation

abdulhakkeempa
Copy link
Contributor

This pull request includes a minor change to the __new__ method in src/smolagents/default_tools.py. The change removes the *args and **kwargs parameters from the super().__new__ call

Fixes #1461

Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!!

I guess this bug was introduced by:

@albertvillanova albertvillanova merged commit 75aedae into huggingface:main Jun 22, 2025
3 checks passed
@abdulhakkeempa
Copy link
Contributor Author

Thanks @albertvillanova for reviewing that.

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.

[BUG] TypeError when instantiating SpeechToTextTool with model argument
2 participants