mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
Adding types and changing some messages from class
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
from collections import deque
|
||||
from typing import List
|
||||
from Config.Config import Configs
|
||||
from Music.Interfaces import IPlaylist
|
||||
from Music.Song import Song
|
||||
import random
|
||||
|
||||
|
||||
class Playlist(IPlaylist):
|
||||
class Playlist:
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.__config = Configs()
|
||||
@@ -54,7 +53,7 @@ class Playlist(IPlaylist):
|
||||
return len(self.__queue)
|
||||
|
||||
def next_song(self) -> Song:
|
||||
if self.__current == None and len(self.__queue) == 0:
|
||||
if self.__current is None and len(self.__queue) == 0:
|
||||
return None
|
||||
|
||||
played_song = self.__current
|
||||
|
||||
Reference in New Issue
Block a user