Skip to content
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

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

experimental: migrate to uv #37

wants to merge 20 commits into from

Conversation

ccurme
Copy link
Contributor

@ccurme ccurme commented Jan 29, 2025

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).

@ccurme ccurme changed the title infra: migrate to uv experimental: migrate to uv Jan 29, 2025
@@ -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]
Copy link
Contributor Author

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]

@ccurme
Copy link
Contributor Author

ccurme commented Jan 29, 2025

@ccurme ccurme marked this pull request as ready for review January 29, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Internal
Development

Successfully merging this pull request may close these issues.

1 participant