Skip to content

Fix default arg when type hints are not available #8089

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
Apr 21, 2025

Conversation

chenmoneygithub
Copy link
Collaborator

@chenmoneygithub chenmoneygithub commented Apr 20, 2025

resolve #8086

The standard is mapping Any to empty json schema, no need to use a special string identifier "Any" to represent the situation where no type hint is provided.

@okhat okhat merged commit 536ca5b into stanfordnlp:main Apr 21, 2025
4 checks passed
@chenmoneygithub chenmoneygithub deleted the fix-dfault-args branch April 25, 2025 21:49
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] New defaults handling for Tools creates TypeError if assigned "Any"
2 participants