-
Notifications
You must be signed in to change notification settings - Fork 24
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
experimental: migrate to uv #37
base: main
Are you sure you want to change the base?
Conversation
@@ -92,8 +92,8 @@ class PythonAstREPLTool(BaseTool): | |||
"When using this tool, sometimes output is abbreviated - " | |||
"make sure it does not look abbreviated before using it in your answer." | |||
) | |||
globals: Optional[Dict] = Field(default_factory=dict) | |||
locals: Optional[Dict] = Field(default_factory=dict) | |||
globals: Optional[Dict] = Field(default_factory=dict) # type: ignore[arg-type] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These come from updating Pydantic to 2.10 in CI. There were some breaking changes associated with that version (see updates in other langchain packages here). Issue here is unclear to me + we appear to test the python repl tool.
error: Argument "default_factory" to "Field" has incompatible type "type[dict[Any, Any]]"; expected "Callable[[], Never] | Callable[[dict[str, Any]], Never]" [arg-type]
All code changes derive from updating Pydantic and langchain-openai in CI (Pydantic 2.10 included breaking changes that we had not fixed in experimental yet).