Format code with yapf
This commit fixes the style issues introduced in b779a6a according to the output
from yapf.
Details: https://deepsource.io/gh/kokarare1212/librespot-python/transform/ef955754-0053-413b-8235-a6a87e8254d0/
This commit is contained in:
committed by
GitHub
parent
b779a6a7d7
commit
cec130aa39
@@ -16,9 +16,10 @@ class ApiClient(Closeable):
|
||||
self._session = session
|
||||
self._baseUrl = "https://{}".format(ApResolver.get_random_spclient())
|
||||
|
||||
def build_request(self, method: str, suffix: str,
|
||||
headers: typing.Union[None, typing.Dict[str, str]],
|
||||
body: typing.Union[None, bytes]) -> requests.PreparedRequest:
|
||||
def build_request(
|
||||
self, method: str, suffix: str,
|
||||
headers: typing.Union[None, typing.Dict[str, str]],
|
||||
body: typing.Union[None, bytes]) -> requests.PreparedRequest:
|
||||
request = requests.PreparedRequest()
|
||||
request.method = method
|
||||
request.data = body
|
||||
@@ -30,8 +31,8 @@ class ApiClient(Closeable):
|
||||
request.url = self._baseUrl + suffix
|
||||
return request
|
||||
|
||||
def send(self, method: str, suffix: str, headers: typing.Union[None, typing.Dict[str,
|
||||
str]],
|
||||
def send(self, method: str, suffix: str,
|
||||
headers: typing.Union[None, typing.Dict[str, str]],
|
||||
body: typing.Union[None, bytes]) -> requests.Response:
|
||||
resp = self._session.client().send(
|
||||
self.build_request(method, suffix, headers, body))
|
||||
|
||||
Reference in New Issue
Block a user