Replies: 2 comments
-
Even better if it could not flag it as E711, as it's the correct syntax. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is it possible to use |
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
-
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