From aa63de936659ea68ffcd788f3bd97215985b0e2c Mon Sep 17 00:00:00 2001 From: Christophe Bornet Date: Wed, 3 Sep 2025 21:28:06 +0200 Subject: [PATCH] chore(langchain): cleanup `langchain_v1` mypy config (#32809) Co-authored-by: Mason Daugherty --- libs/langchain_v1/pyproject.toml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/libs/langchain_v1/pyproject.toml b/libs/langchain_v1/pyproject.toml index 85e39348e52..e5e7e7acd57 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"