Document return type of get_by_uri and get_by_id
This commit is contained in:
parent
85a34d943b
commit
0e3a98b328
@ -74,6 +74,7 @@ class BaseCurrentPlaylistController(object):
|
||||
|
||||
:param id: track ID
|
||||
:type id: int
|
||||
:rtype: :class:`mopidy.models.Track`
|
||||
"""
|
||||
matches = filter(lambda t: t.id == id, self._playlist.tracks)
|
||||
if matches:
|
||||
@ -87,6 +88,7 @@ class BaseCurrentPlaylistController(object):
|
||||
|
||||
:param uri: track URI
|
||||
:type uri: string
|
||||
:rtype: :class:`mopidy.models.Track`
|
||||
"""
|
||||
matches = filter(lambda t: t.uri == uri, self._playlist.tracks)
|
||||
if matches:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user