From f5ca0f4d6db4aa384c37dc0484ac91b0757ada45 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 10 Mar 2022 11:00:51 +0000 Subject: [PATCH] Format code with yapf This commit fixes the style issues introduced in 287fbbc according to the output from yapf. Details: https://deepsource.io/gh/kokarare1212/librespot-python/transform/84617c1e-f44f-4f57-8da5-04836eaee6a0/ --- librespot/audio/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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