Implement the ``IS NOT`` operator. Normally, ``IS NOT`` is generated automatically when comparing to a value of ``None``, which resolves to ``NULL``. However, explicit usage of ``IS NOT`` may be desirable if comparing to boolean values on certain platforms.
(self, other: Any)
| 1240 | return self.operate(is_, other) |
| 1241 | |
| 1242 | def is_not(self, other: Any) -> ColumnOperators: |
| 1243 | """Implement the ``IS NOT`` operator. |
| 1244 | |
| 1245 | Normally, ``IS NOT`` is generated automatically when comparing to a |
| 1246 | value of ``None``, which resolves to ``NULL``. However, explicit |
| 1247 | usage of ``IS NOT`` may be desirable if comparing to boolean values |
| 1248 | on certain platforms. |
| 1249 | |
| 1250 | .. versionchanged:: 1.4 The ``is_not()`` operator is renamed from |
| 1251 | ``isnot()`` in previous releases. The previous name remains |
| 1252 | available for backwards compatibility. |
| 1253 | |
| 1254 | .. seealso:: :meth:`.ColumnOperators.is_` |
| 1255 | |
| 1256 | """ |
| 1257 | return self.operate(is_not, other) |
| 1258 | |
| 1259 | # deprecated 1.4; see #5429 |
| 1260 | if TYPE_CHECKING: |