SQLModel 0.0.14 throws mypy validation errors #732
Replies: 9 comments 13 replies
-
Thanks for reporting! I have the same issue with the 0.0.14 version of SQLModel. I had to roll back to the 0.0.12 version... 😔 |
Beta Was this translation helpful? Give feedback.
-
I faced those issues, too. Upgrading to pydantic 2 resolved them for me. |
Beta Was this translation helpful? Give feedback.
-
Does anyone know the right way to fix this when using Or I guess we wait for a future version where it's fixed in |
Beta Was this translation helpful? Give feedback.
-
I can confirm that this is also an issue with Pyright. |
Beta Was this translation helpful? Give feedback.
-
I'm seeing the same with |
Beta Was this translation helpful? Give feedback.
-
Same issue with the following setup:
and adding |
Beta Was this translation helpful? Give feedback.
-
facing the same issue, and adding dependencies didn't help. |
Beta Was this translation helpful? Give feedback.
-
I faced the same issue with the following versions, and adding
|
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue
|
Beta Was this translation helpful? Give feedback.
-
First Check
Commit to Help
Example Code
Description
Recent updates on SQLModel broke mypy linter.
I am using
pydantic==1.10.13
andmypy==1.7.1
Linting, the following snippet of code (from the documentation) triggers two mypy errors:
Am I doing something wrong?
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.14
Python Version
3.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions