Format code with yapf

This commit fixes the style issues introduced in 145e9a7 according to the output
from yapf.

Details: https://deepsource.io/gh/kokarare1212/librespot-python/transform/67a153b1-288c-42c3-b483-041e162b9474/
This commit is contained in:
deepsource-autofix[bot] 2021-05-15 00:01:51 +00:00 committed by GitHub
parent 145e9a7f60
commit f03c100f06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -16,7 +16,8 @@ class ZeroconfServer(Closeable):
__keys: DiffieHellman
__inner: ZeroconfServer.Inner
def __init__(self, inner: ZeroconfServer.Inner, listen_port: int, listen_all: bool):
def __init__(self, inner: ZeroconfServer.Inner, listen_port: int,
listen_all: bool):
self.__inner = inner
self.__keys = DiffieHellman()
@ -39,7 +40,11 @@ class ZeroconfServer(Closeable):
return self
def create(self) -> ZeroconfServer:
return ZeroconfServer(ZeroconfServer.Inner(self.device_type, self.device_name, self.preferred_locale, self.conf, self.device_id), self.__listenPort, self.__listenAll)
return ZeroconfServer(
ZeroconfServer.Inner(self.device_type, self.device_name,
self.preferred_locale, self.conf,
self.device_id), self.__listenPort,
self.__listenAll)
class Inner:
device_type: Connect.DeviceType = None
@ -63,7 +68,8 @@ class ZeroconfServer(Closeable):
class HttpRunner(Runnable, Closeable):
__sock: socket
__executorService: concurrent.futures.ThreadPoolExecutor = concurrent.futures.ThreadPoolExecutor()
__executorService: concurrent.futures.ThreadPoolExecutor = concurrent.futures.ThreadPoolExecutor(
)
__shouldStop: bool = False
def __init__(self, port: int):
@ -86,4 +92,3 @@ class ZeroconfServer(Closeable):
def close(self) -> None:
super().close()