Skip to content

The agent engineering platform.

chore(langchain): cleanup `langchain_v1` mypy config (#32809)

Christophe Bornetaa63de936659
diff --git a/libs/langchain_v1/pyproject.toml b/libs/langchain_v1/pyproject.toml
index 85e39348e5..e5e7e7acd5 100644
--- a/libs/langchain_v1/pyproject.toml
+++ b/libs/langchain_v1/pyproject.toml
@@ -59,10 +59,10 @@ test = [
]
codespell = ["codespell<3.0.0,>=2.2.0"]
lint = [
- "ruff<0.13,>=0.12.11",
- "mypy>=1.15",
+ "ruff>=0.12.2",
]
typing = [
+ "mypy<0.18,>=1.17.1",
"types-toml>=0.10.8.20240310",
]
@@ -88,19 +88,14 @@ exclude = ["tests/integration_tests/examples/non-utf8-encoding.py"]
line-length = 100
[tool.mypy]
-strict = "True"
-strict_bytes = "True"
-ignore_missing_imports = "True"
+strict = true
+ignore_missing_imports = true
enable_error_code = "deprecated"
-report_deprecated_as_note = "True"
exclude = ["tests/unit_tests/agents/*", "tests/integration_tests/agents/*"]
# TODO: activate for 'strict' checking
-disallow_untyped_calls = "False"
-disallow_any_generics = "False"
-disallow_untyped_decorators = "False"
-warn_return_any = "False"
-strict_equality = "False"
+disallow_any_generics = false
+warn_return_any = false
[tool.codespell]
skip = ".git,*.pdf,*.svg,*.pdf,*.yaml,*.ipynb,poetry.lock,*.min.js,*.css,package-lock.json,example_data,_dist,examples,*.trig"