Skip to content

Commit c44ec4f

Browse files
committed
added docstrings
1 parent 4b6fb63 commit c44ec4f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ChillBot/music.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ class ArtistList:
4646
def __init__(self):
4747
super().__init__()
4848

49-
def filter(self, name: str):
49+
def filter(self, name: str) -> ArtistItem | None:
50+
"""Filters the artist
51+
52+
Returns: ArtistItem | None
53+
"""
5054

5155
data = [x for x in self.artists if x.get('name').lower() == name.lower()]
5256

0 commit comments

Comments
 (0)