Format code with yapf
This commit fixes the style issues introduced in 2790f48 according to the output
from yapf.
Details: https://deepsource.io/gh/kokarare1212/librespot-python/transform/04a80a03-ea85-44b3-9159-2580bda68c1c/
This commit is contained in:
committed by
GitHub
parent
2790f484c8
commit
0741dbdd43
@@ -135,8 +135,7 @@ class ArtistId(SpotifyId):
|
||||
|
||||
@staticmethod
|
||||
def from_base62(base62: str) -> ArtistId:
|
||||
return ArtistId(util.bytes_to_hex(ArtistId.base62.decode(base62,
|
||||
16)))
|
||||
return ArtistId(util.bytes_to_hex(ArtistId.base62.decode(base62, 16)))
|
||||
|
||||
@staticmethod
|
||||
def from_hex(hex_str: str) -> ArtistId:
|
||||
@@ -205,8 +204,7 @@ class ShowId(SpotifyId):
|
||||
matcher = ShowId.pattern.search(uri)
|
||||
if matcher is not None:
|
||||
show_id = matcher.group(1)
|
||||
return ShowId(
|
||||
util.bytes_to_hex(ShowId.base62.decode(show_id, 16)))
|
||||
return ShowId(util.bytes_to_hex(ShowId.base62.decode(show_id, 16)))
|
||||
raise TypeError("Not a Spotify show ID: {}".format(uri))
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user