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
When I look at this code, it seems straight-forward. The linters and type checkers complain about assigning None to x but more importantly, assert m.x is None fails.
This is a silly example: an int field that is None instead of 0 and otherwise just an int, but I am wondering how to get there.
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
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
When I look at this code, it seems straight-forward. The linters and type checkers complain about assigning
None
tox
but more importantly,assert m.x is None
fails.This is a silly example: an
int
field that isNone
instead of 0 and otherwise just anint
, but I am wondering how to get there.How would you do it?
Operating System
Linux, Windows, macOS, Other
Operating System Details
No response
SQLModel Version
0.0.24
Python Version
3.13.3
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions