Skip to content

Commit bf8fbed

Browse files
committedAug 21, 2022
Clarify Album.items() conflict
1 parent 1cde938 commit bf8fbed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎beets/library.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1146,8 +1146,10 @@ def items(self):
11461146
"""Return an iterable over the items associated with this
11471147
album.
11481148
1149-
This method predates the :meth:`LibModel.items` method inherited
1150-
from :meth:`beets.dbcore.Model.items`.
1149+
This method conflicts with :meth:`LibModel.items`, which is
1150+
inherited from :meth:`beets.dbcore.Model.items`.
1151+
Since :meth:`Album.items` predates these methods, and is
1152+
likely to be used by plugins, we keep this interface as-is.
11511153
"""
11521154
return self._db.items(dbcore.MatchQuery('album_id', self.id))
11531155

0 commit comments

Comments
 (0)
Please sign in to comment.