Adding types and changing some messages from class

This commit is contained in:
Rafael Vargas
2022-03-26 21:24:03 -04:00
parent f9b46e13ff
commit b4159c7e86
16 changed files with 154 additions and 359 deletions

View File

@@ -1,13 +1,10 @@
from Music.Interfaces import ISong, IPlaylist
class Song:
class Song(ISong):
def __init__(self, identifier: str, playlist: IPlaylist, requester: str) -> None:
def __init__(self, identifier: str, playlist, requester: str) -> None:
self.__identifier = identifier
self.__info = {'requester': requester}
self.__problematic = False
self.__playlist: IPlaylist = playlist
self.__playlist = playlist
def finish_down(self, info: dict) -> None:
if info is None: