From e69a9bedf8d9278f651ad424638ba7b24307e6bb Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Tue, 14 May 2024 17:29:07 -0400 Subject: [PATCH] core[patch]: Update mypy config (#21684) Update mypy config to ignore checking deps from numpy and pytest (which are optional in langsmith sdk) --- libs/core/pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/core/pyproject.toml b/libs/core/pyproject.toml index 17ffaa4ed84..429a3c14bf5 100644 --- a/libs/core/pyproject.toml +++ b/libs/core/pyproject.toml @@ -80,6 +80,11 @@ select = [ disallow_untyped_defs = "True" exclude = ["notebooks", "examples", "example_data", "langchain_core/pydantic"] +[[tool.mypy.overrides]] +# conditional dependencies introduced by langsmith-sdk +module = ["numpy", "pytest"] +ignore_missing_imports = true + [tool.coverage.run] omit = ["tests/*"]