Skip to content

Commit

Permalink
Clarify Album.items() conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
govynnus committed Aug 21, 2022
1 parent 1cde938 commit bf8fbed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions beets/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,8 +1146,10 @@ def items(self):
"""Return an iterable over the items associated with this
album.
This method predates the :meth:`LibModel.items` method inherited
from :meth:`beets.dbcore.Model.items`.
This method conflicts with :meth:`LibModel.items`, which is
inherited from :meth:`beets.dbcore.Model.items`.
Since :meth:`Album.items` predates these methods, and is
likely to be used by plugins, we keep this interface as-is.
"""
return self._db.items(dbcore.MatchQuery('album_id', self.id))

Expand Down

0 comments on commit bf8fbed

Please sign in to comment.