Replies: 1 comment
-
In current version (SQLModel 0.0.24, mypy 1.17.1) mypy can infer types of those statements. |
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.
-
First Check
Commit to Help
Example Code
Description
The tutorial code is not fully typed for MyPy. Moving to full types is not helped by Mypy being confused with the types of the
statement
andresults
variablesCan we show how to add types (I'm thinking of an additional topic in the Advanced tutorial)? eg
which need these imports:
Would you like me to submit a PR with a new doc file?
At the same time, I am confused by the session source code. The return types in a few places have
: ...
eg at the end of execI can't find anywhere what the
...
after the:
means.Thanks
Dave
Operating System
Linux
Operating System Details
Debian12 (using uv with Python 3.12.6)
SQLModel Version
0.0.22
Python Version
3.12.6
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions