@@ -1176,7 +1176,7 @@ def contains(self, other: Any, **kw: Any) -> ColumnElement[bool]:
1176
1176
** {self .value_attr : other }
1177
1177
)
1178
1178
1179
- def __eq__ (self , obj : Any ) -> ColumnElement [bool ]: # type: ignore[override] # noqa E501
1179
+ def __eq__ (self , obj : Any ) -> ColumnElement [bool ]: # type: ignore[override] # noqa: E501
1180
1180
# note the has() here will fail for collections; eq_()
1181
1181
# is only allowed with a scalar.
1182
1182
if obj is None :
@@ -1187,7 +1187,7 @@ def __eq__(self, obj: Any) -> ColumnElement[bool]: # type: ignore[override] #
1187
1187
else :
1188
1188
return self ._comparator .has (** {self .value_attr : obj })
1189
1189
1190
- def __ne__ (self , obj : Any ) -> ColumnElement [bool ]: # type: ignore[override] # noqa E501
1190
+ def __ne__ (self , obj : Any ) -> ColumnElement [bool ]: # type: ignore[override] # noqa: E501
1191
1191
# note the has() here will fail for collections; eq_()
1192
1192
# is only allowed with a scalar.
1193
1193
return self ._comparator .has (
@@ -1203,7 +1203,7 @@ class ColumnAssociationProxyInstance(AssociationProxyInstance[_T]):
1203
1203
_target_is_object : bool = False
1204
1204
_is_canonical = True
1205
1205
1206
- def __eq__ (self , other : Any ) -> ColumnElement [bool ]: # type: ignore[override] # noqa E501
1206
+ def __eq__ (self , other : Any ) -> ColumnElement [bool ]: # type: ignore[override] # noqa: E501
1207
1207
# special case "is None" to check for no related row as well
1208
1208
expr = self ._criterion_exists (
1209
1209
self .remote_attr .operate (operators .eq , other )
0 commit comments