Pydantic and Pydantic Settings don't seem to provide library stubs for MyPy #9446
Replies: 5 comments 3 replies
-
There's probably an issue with your venv management: are you sure you are running |
Beta Was this translation helpful? Give feedback.
-
I don't install anything with Is there a listing of files that one would expect in the |
Beta Was this translation helpful? Give feedback.
-
Hmm, I'm going to move this to a discussion. I think @Viicos is right, this probably relates to venv management. |
Beta Was this translation helpful? Give feedback.
-
I am facing the same issue. |
Beta Was this translation helpful? Give feedback.
-
Same as me. I am working in python 3.11.8-slim docker, with Poetry and Pydantic version is following:
|
Beta Was this translation helpful? Give feedback.
-
Initial Checks
Description
In the Pydantic documentation for MyPy, it is stated that:
However, MyPy generates errors for a simple module,
I've removed the line numbers because they don't match up anyway to the code example below since I removed documentation lines, but they don't matter anyway since MyPy doesn't typecheck any Pydantic piece.
As a note, I am using Poetry. Here is my
pyproject.toml
configuration for MyPy:Whether plugins is present or not makes no difference to the errors above.
Example Code
Python, Pydantic & OS Version
Beta Was this translation helpful? Give feedback.
All reactions