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
We use E711 and E712 which tell the user that == None should be is None. The problem is that there's an exception to that rule: when using SQLAlchemy one MUST use .filter(column == None) so that column.__eq__ is called.
It would be great if we could provide some rationale/additional info in Ruff error messages, with something like:
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
-
We use E711 and E712 which tell the user that
== None
should beis None
. The problem is that there's an exception to that rule: when using SQLAlchemy one MUST use.filter(column == None)
so thatcolumn.__eq__
is called.It would be great if we could provide some rationale/additional info in Ruff error messages, with something like:
Beta Was this translation helpful? Give feedback.
All reactions