Merge pull request #23 from kokarare1212/restyled/deepsource-transform-374faca3

Restyle Format code with yapf
This commit is contained in:
こうから 2021-05-16 16:06:37 +09:00 committed by GitHub
commit f81d31f3bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,10 @@
from __future__ import annotations
import re
from librespot.common import Base62
from librespot.common import Utils
from librespot.proto.ContextTrack import ContextTrack
import re
class SpotifyId:
@ -47,9 +49,9 @@ class PlayableId:
@staticmethod
def is_supported(uri: str):
return not uri.startswith("spotify:local:") and \
not uri == "spotify:delimiter" and \
not uri == "spotify:meta:delimiter"
return (not uri.startswith("spotify:local:")
and not uri == "spotify:delimiter"
and not uri == "spotify:meta:delimiter")
@staticmethod
def should_play(track: ContextTrack):