fix(langchain): activate mypy warn-unreachable (#34553)

Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
Christophe Bornet
2026-01-10 04:11:16 +01:00
committed by GitHub
parent 5dc8ba3c99
commit fc417aaf17
9 changed files with 37 additions and 45 deletions

View File

@@ -64,7 +64,7 @@ def test_host_policy_validations() -> None:
def test_host_policy_requires_resource_for_limits(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr(_execution, "resource", None, raising=False)
monkeypatch.setattr(_execution, "_HAS_RESOURCE", False, raising=False)
with pytest.raises(RuntimeError):
HostExecutionPolicy(cpu_time_seconds=1)