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)
| 1050 | return self.operate(is_, other) |
| 1051 | |
| 1052 | def is_not(self, other: Any) -> ColumnOperators: |
| 1053 | """Implement the ``IS NOT`` operator. |
| 1054 | |
| 1055 | Normally, ``IS NOT`` is generated automatically when comparing to a |
| 1056 | value of ``None``, which resolves to ``NULL``. However, explicit |
| 1057 | usage of ``IS NOT`` may be desirable if comparing to boolean values |
| 1058 | on certain platforms. |
| 1059 | |
| 1060 | .. versionchanged:: 1.4 The ``is_not()`` operator is renamed from |
| 1061 | ``isnot()`` in previous releases. The previous name remains |
| 1062 | available for backwards compatibility. |
| 1063 | |
| 1064 | .. seealso:: :meth:`.ColumnOperators.is_` |
| 1065 | |
| 1066 | """ |
| 1067 | return self.operate(is_not, other) |
| 1068 | |
| 1069 | # deprecated 1.4; see #5429 |
| 1070 | if TYPE_CHECKING: |