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

infra: test 3.13 ci #27197

Merged
merged 42 commits into from
Oct 25, 2024
Merged

infra: test 3.13 ci #27197

merged 42 commits into from
Oct 25, 2024

Conversation

efriis
Copy link
Member

@efriis efriis commented Oct 8, 2024

No description provided.

Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 7:52pm

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Oct 8, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Oct 8, 2024
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 24, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Oct 24, 2024
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 24, 2024
pyproject.toml Outdated
Comment on lines 33 to 58
[tool.poetry.group.dev.dependencies]
langchain-core = { path = "libs/core/", develop = true }
langchain-text-splitters = { path = "libs/text-splitters", develop = true }
langchain-community = { path = "libs/community/", develop = true }
langchain = { path = "libs/langchain/", develop = true }
langchain-openai = { path = "libs/partners/openai", develop = true }
ipykernel = "^6.29.2"

# Support Python 3.8 and 3.12+.
# Can be removed once the numpy version is fixed in langchain-community.
numpy = [
{ version = "^1.24.0", python = "<3.12" },
{ version = "^1.26.0", python = ">=3.12" },
]
[tool.poetry.group.typing.dependencies]

[tool.poetry.group.test.dependencies]
langchain-experimental = { git = "https://github.com/langchain-ai/langchain-experimental.git", subdirectory = "libs/experimental" }
langchain-anthropic = { path = "libs/partners/anthropic", develop = true }
langchain-chroma = { path = "libs/partners/chroma", develop = true }
langchain-mistralai = { path = "libs/partners/mistralai", develop = true }
langgraph = { git = "https://github.com/langchain-ai/langgraph.git", subdirectory = "libs/langgraph" }
jupyter = "^1.1.1"
click = "^8.1.7"
faiss-cpu = "^1.7.4"
pypdf = "^5.0.0"
vcrpy = "^6.0.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

these dependencies are needed for notebook tests

@@ -13,7 +13,7 @@
from langchain_community.utilities.requests import Requests


class NLATool(Tool):
class NLATool(Tool): # type: ignore[override]
Copy link
Collaborator

Choose a reason for hiding this comment

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

ooc what is driving the need for the new # type: ignores? is it mypy getting updated?

Copy link
Member Author

Choose a reason for hiding this comment

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

Should we instead @override overridden methods? I believe that might be what it's trying to enforce

Copy link
Member Author

Choose a reason for hiding this comment

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

(happy to merge this now and do a sprint on fixing ignores like this)

Copy link
Collaborator

Choose a reason for hiding this comment

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

@ccurme im not actually sure, afaict it was same mypy version. but issue was only happening in py3.13 so maybe im missing something

Copy link
Member Author

@efriis efriis left a comment

Choose a reason for hiding this comment

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

lgtm

not sure I understand all the type annotations. another option would be to upper-bound mypy at the old locked version, get 3.13 in, and then work on the mypy upgrade separately. I believe they're 2 different things (3.13 was more tests, mypy upgrade was more community lint)

@@ -13,7 +13,7 @@
from langchain_community.utilities.requests import Requests


class NLATool(Tool):
class NLATool(Tool): # type: ignore[override]
Copy link
Member Author

Choose a reason for hiding this comment

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

Should we instead @override overridden methods? I believe that might be what it's trying to enforce

@@ -13,7 +13,7 @@
from langchain_community.utilities.requests import Requests


class NLATool(Tool):
class NLATool(Tool): # type: ignore[override]
Copy link
Member Author

Choose a reason for hiding this comment

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

(happy to merge this now and do a sprint on fixing ignores like this)

@@ -304,36 +304,38 @@ def _stream(
"http_client": None,
}

client = openai.OpenAI(**client_params)
client = openai.OpenAI(**client_params) # type: ignore[arg-type, arg-type, arg-type, arg-type, arg-type, arg-type]
Copy link
Member Author

Choose a reason for hiding this comment

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

what does this mean?

@baskaryan baskaryan merged commit 600b7bd into master Oct 25, 2024
80 checks passed
@baskaryan baskaryan deleted the erick/infra-test-3-13-ci branch October 25, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants