Skip to content

Commit 949d7fb

Browse files
committed
More docstring whitespace
1 parent 2144882 commit 949d7fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

beets/dbcore/query.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ class DateQuery(FieldQuery):
667667
The value of a date field can be matched against a date interval by
668668
using an ellipsis interval syntax similar to that of NumericQuery.
669669
"""
670+
670671
def __init__(self, field, pattern, fast=True):
671672
super(DateQuery, self).__init__(field, pattern, fast)
672673
start, end = _parse_periods(pattern)
@@ -710,6 +711,7 @@ class DurationQuery(NumericQuery):
710711
Raises InvalidQueryError when the pattern does not represent an int, float
711712
or M:SS time interval.
712713
"""
714+
713715
def _convert(self, s):
714716
"""Convert a M:SS or numeric string to a float.
715717
@@ -832,6 +834,7 @@ class FieldSort(Sort):
832834
"""An abstract sort criterion that orders by a specific field (of
833835
any kind).
834836
"""
837+
835838
def __init__(self, field, ascending=True, case_insensitive=True):
836839
self.field = field
837840
self.ascending = ascending
@@ -869,6 +872,7 @@ def __eq__(self, other):
869872
class FixedFieldSort(FieldSort):
870873
"""Sort object to sort on a fixed field.
871874
"""
875+
872876
def order_clause(self):
873877
order = "ASC" if self.ascending else "DESC"
874878
if self.case_insensitive:
@@ -885,12 +889,14 @@ class SlowFieldSort(FieldSort):
885889
"""A sort criterion by some model field other than a fixed field:
886890
i.e., a computed or flexible field.
887891
"""
892+
888893
def is_slow(self):
889894
return True
890895

891896

892897
class NullSort(Sort):
893898
"""No sorting. Leave results unsorted."""
899+
894900
def sort(self, items):
895901
return items
896902

0 commit comments

Comments
 (0)