Replies: 1 comment
-
LangChain does not fully support mypy for both pydantic v1 and v2 at once due to current limitations in pydantic itself. To resolve the "Cannot find implementation or library stub for module named 'langchain.pydantic_v1'" error, you can create a stub file for # langchain/pydantic_v1.pyi
from pydantic import * # type: ignore This should help mypy recognize the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I'm trying to use mypy for my project, but I get this error:
Cannot find implementation or library stub for module named "langchain.pydantic_v1"Mypyimport-not-found
Does LangChain support mypy?
System Info
Latest langchain version
Beta Was this translation helpful? Give feedback.
All reactions