fix circular import issue
This commit is contained in:
parent
e66440e9b3
commit
2c5e8b12b0
|
|
@ -1,10 +1,12 @@
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import json
|
import json
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
import socket
|
import socket
|
||||||
import time
|
import time
|
||||||
from typing import Dict, Optional, Type
|
from typing import Dict, Optional, Type, TYPE_CHECKING
|
||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
|
@ -25,10 +27,12 @@ from .exceptions import (
|
||||||
TrackLoadError
|
TrackLoadError
|
||||||
)
|
)
|
||||||
from .objects import Playlist, Track
|
from .objects import Playlist, Track
|
||||||
from .player import Player
|
|
||||||
from .spotify import SpotifyException
|
from .spotify import SpotifyException
|
||||||
from .utils import ExponentialBackoff, NodeStats
|
from .utils import ExponentialBackoff, NodeStats
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from .player import Player
|
||||||
|
|
||||||
SPOTIFY_URL_REGEX = re.compile(
|
SPOTIFY_URL_REGEX = re.compile(
|
||||||
r"https?://open.spotify.com/(?P<type>album|playlist|track)/(?P<id>[a-zA-Z0-9]+)"
|
r"https?://open.spotify.com/(?P<type>album|playlist|track)/(?P<id>[a-zA-Z0-9]+)"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue