Replies: 2 comments
-
|
This is caused by |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I think this might also be related and/or to pyright 1.1.407 specifically |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
From 0.0.26 onwards, importing/using
sqlmodel.Fieldand having pyright/basedpyright in "strict" mode causes the type checker to report an error. This means that I either have to set atype: ignoreor dial back the overall type "strict-ness" in a project to stop the LSP from complaining.Full example:
(the code above saved as "main.py")
pyproject.toml - minimal just to set "strict" mode for type-checking
run with version 0.0.25 - no errors or warnings reported (as expected)
pip install --quiet sqlmodel==0.0.25 && pyrightversion 0.0.26 fails with
reportUnknownVariableTypepip install --quiet sqlmodel==0.0.26 && pyrightOperating System
macOS
Operating System Details
No response
SQLModel Version
0.0.26
Python Version
3.13.7
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions