diff --git a/librespot/audio/__init__.py b/librespot/audio/__init__.py index fe1e3ed..5623ab0 100644 --- a/librespot/audio/__init__.py +++ b/librespot/audio/__init__.py @@ -216,6 +216,7 @@ class AbsChunkedInputStream(io.BytesIO, HaltListener): return self.__decoded_length class ChunkException(IOError): + @staticmethod def from_stream_error(stream_error: int): return AbsChunkedInputStream \ @@ -280,6 +281,7 @@ class AudioKeyManager(PacketsReceiver, Closeable): return key class Callback: + def key(self, key: bytes) -> None: raise NotImplementedError