Skip to content

The agent engineering platform.

chore(langchain): improve `ignore_missing_imports` config (#34551)

Christophe Bornet606ef38e7412
diff --git a/libs/langchain_v1/pyproject.toml b/libs/langchain_v1/pyproject.toml
index 2b717bff75..3fdbf8b0e5 100644
--- a/libs/langchain_v1/pyproject.toml
+++ b/libs/langchain_v1/pyproject.toml
@@ -90,7 +90,6 @@ line-length = 100
[tool.mypy]
strict = true
-ignore_missing_imports = true
enable_error_code = "deprecated"
warn_unreachable = true
exclude = ["tests/unit_tests/agents/*"]
@@ -99,6 +98,10 @@ exclude = ["tests/unit_tests/agents/*"]
disallow_any_generics = false
warn_return_any = false
+[[tool.mypy.overrides]]
+module = ["pytest_socket.*", "vcr.*"]
+ignore_missing_imports = true
+
[tool.ruff.format]
docstring-code-format = true