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:
committed by
GitHub
parent
145e9a7f60
commit
f03c100f06
@@ -16,7 +16,8 @@ class ZeroconfServer(Closeable):
|
|||||||
__keys: DiffieHellman
|
__keys: DiffieHellman
|
||||||
__inner: ZeroconfServer.Inner
|
__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.__inner = inner
|
||||||
self.__keys = DiffieHellman()
|
self.__keys = DiffieHellman()
|
||||||
|
|
||||||
@@ -39,7 +40,11 @@ class ZeroconfServer(Closeable):
|
|||||||
return self
|
return self
|
||||||
|
|
||||||
def create(self) -> ZeroconfServer:
|
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:
|
class Inner:
|
||||||
device_type: Connect.DeviceType = None
|
device_type: Connect.DeviceType = None
|
||||||
@@ -63,7 +68,8 @@ class ZeroconfServer(Closeable):
|
|||||||
|
|
||||||
class HttpRunner(Runnable, Closeable):
|
class HttpRunner(Runnable, Closeable):
|
||||||
__sock: socket
|
__sock: socket
|
||||||
__executorService: concurrent.futures.ThreadPoolExecutor = concurrent.futures.ThreadPoolExecutor()
|
__executorService: concurrent.futures.ThreadPoolExecutor = concurrent.futures.ThreadPoolExecutor(
|
||||||
|
)
|
||||||
__shouldStop: bool = False
|
__shouldStop: bool = False
|
||||||
|
|
||||||
def __init__(self, port: int):
|
def __init__(self, port: int):
|
||||||
@@ -86,4 +92,3 @@ class ZeroconfServer(Closeable):
|
|||||||
|
|
||||||
def close(self) -> None:
|
def close(self) -> None:
|
||||||
super().close()
|
super().close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user