Format code with yapf

This commit fixes the style issues introduced in 3df41f0 according to the output
from yapf.

Details: https://deepsource.io/gh/kokarare1212/librespot-python/transform/8943cbb4-879c-4a5f-8f77-e14c8c5ac178/
This commit is contained in:
deepsource-autofix[bot]
2021-04-09 23:16:05 +00:00
committed by GitHub
parent 3df41f04fc
commit 45e69da1a8
9 changed files with 44 additions and 46 deletions

View File

@@ -18,15 +18,14 @@ class ArtistId(SpotifyId.SpotifyId):
if matcher is not None:
artist_id = matcher.group(1)
return ArtistId(
Utils.bytes_to_hex(ArtistId._BASE62.decode(
artist_id, 16)))
Utils.bytes_to_hex(ArtistId._BASE62.decode(artist_id, 16)))
else:
raise TypeError("Not a Spotify artist ID: {}".format(uri))
@staticmethod
def from_base62(base62: str) -> ArtistId:
return ArtistId(
Utils.bytes_to_hex(ArtistId._BASE62.decode(base62, 16)))
return ArtistId(Utils.bytes_to_hex(ArtistId._BASE62.decode(base62,
16)))
@staticmethod
def from_hex(hex_str: str) -> ArtistId: