You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and results variables
Can we show how to add types (I'm thinking of an additional topic in the Advanced tutorial)? eg
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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