Restyled by isort

This commit is contained in:
Restyled.io
2021-04-09 23:16:20 +00:00
parent cc49433aa9
commit fa7d74d9df
8 changed files with 26 additions and 17 deletions

View File

@@ -1,8 +1,9 @@
from __future__ import annotations
import re
from librespot.common import Base62, Utils
from librespot.metadata import SpotifyId
import re
class AlbumId(SpotifyId.SpotifyId):

View File

@@ -1,7 +1,9 @@
from __future__ import annotations
import re
from librespot.common import Base62, Utils
from librespot.metadata import SpotifyId
import re
class ArtistId(SpotifyId.SpotifyId):

View File

@@ -1,7 +1,9 @@
from __future__ import annotations
import re
from librespot.common import Base62, Utils
from librespot.metadata import SpotifyId
import re
class ShowId(SpotifyId.SpotifyId):

View File

@@ -1,8 +1,10 @@
from __future__ import annotations
import re
from librespot.common import Utils
from librespot.metadata import SpotifyId
from librespot.metadata.PlayableId import PlayableId
import re
class TrackId(PlayableId, SpotifyId):

View File

@@ -1,4 +1,9 @@
from __future__ import annotations
import logging
import sched
import time
from librespot.core.Session import Session
from librespot.player import PlayerConfiguration, StateWrapper
from librespot.player.metrics import PlaybackMetrics
@@ -6,9 +11,6 @@ from librespot.player.mixing import AudioSink
from librespot.player.playback.PlayerSession import PlayerSession
from librespot.player.state.DeviceStateHandler import DeviceStateHandler
from librespot.standard.Closeable import Closeable
import logging
import sched
import time
class Player(Closeable, PlayerSession.Listener, AudioSink.Listener):

View File

@@ -1,15 +1,12 @@
from __future__ import annotations
from librespot.core import Session
from librespot.dealer import DealerClient
from librespot.player import Player, PlayerConfiguration
from librespot.player.state import DeviceStateHandler
from librespot.proto import Connect
from librespot.proto.Player import (
ContextPlayerOptions,
PlayerState,
Restrictions,
Suppressions,
)
from librespot.proto.Player import (ContextPlayerOptions, PlayerState,
Restrictions, Suppressions)
class StateWrapper(DeviceStateHandler.Listener, DealerClient.MessageListener):

View File

@@ -1,4 +1,5 @@
from __future__ import annotations
from librespot.player import PlayerConfiguration

View File

@@ -1,8 +1,5 @@
from __future__ import annotations
from librespot.common import Utils
from librespot.core import Session
from librespot.player import PlayerConfiguration
from librespot.proto import Connect, Player
import base64
import concurrent.futures
import enum
@@ -11,6 +8,11 @@ import time
import typing
import urllib.parse
from librespot.common import Utils
from librespot.core import Session
from librespot.player import PlayerConfiguration
from librespot.proto import Connect, Player
class DeviceStateHandler:
_LOGGER: logging = logging.getLogger(__name__)