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
Describe the bug
Introduced by #40, sql.functions are no longer able to be assigned to ORM attributes. I couldn't find documented cases of directly assigning functions to attributes. Is it even a supported use-case? Or should update() always be used.
Expected behavior
Type checking to pass, as it works at runtime
test/ext/mypy/files/function_now.py:15: error: Incompatible types in assignment (expression has type "now[<nothing>]", variable has type "Optional[datetime]")```
Have a nice day!
The text was updated successfully, but these errors were encountered:
Describe the bug
Introduced by #40,
sql.functions
are no longer able to be assigned to ORM attributes. I couldn't find documented cases of directly assigning functions to attributes. Is it even a supported use-case? Or shouldupdate()
always be used.Expected behavior
Type checking to pass, as it works at runtime
To Reproduce
Error
Have a nice day!
The text was updated successfully, but these errors were encountered: