Skip to content

Commit d6e9b23

Browse files
committed
fix lint issues
1 parent 8bc61a1 commit d6e9b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aredis_om/model/model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ def validate_sort_fields(self, sort_fields: List[str]):
523523
field_proxy: ExpressionProxy = getattr(self.model, field_name)
524524

525525
if (
526-
not field_proxy.field.sortable is True
527-
and not field_proxy.field.index is True
526+
field_proxy.field.sortable is not True
527+
and field_proxy.field.index is not True
528528
):
529529
raise QueryNotSupportedError(
530530
f"You tried sort by {field_name}, but {self.model} does "

0 commit comments

Comments
 (0)