core[patch]: Update mypy config (#21684)

Update mypy config to ignore checking deps from numpy and pytest (which are optional in langsmith sdk)
This commit is contained in:
Eugene Yurtsev 2024-05-14 17:29:07 -04:00 committed by GitHub
parent 9973547aef
commit e69a9bedf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,11 @@ select = [
disallow_untyped_defs = "True" disallow_untyped_defs = "True"
exclude = ["notebooks", "examples", "example_data", "langchain_core/pydantic"] 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] [tool.coverage.run]
omit = ["tests/*"] omit = ["tests/*"]