Skip to content

Commit

Permalink
rename QueueLoopMode enum names
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhnsy committed Apr 4, 2022
1 parent 5400259 commit 75aeb5b
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion slate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import logging
from typing import Final, Literal, NamedTuple

# My stuff
# Local
from .exceptions import *
from .node import *
from .objects import *
Expand Down
2 changes: 1 addition & 1 deletion slate/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Packages
import aiohttp

# My stuff
# Local
from .objects.enums import Source


Expand Down
4 changes: 2 additions & 2 deletions slate/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import spotipy
from discord.ext import commands

# My stuff
# Local
from .exceptions import (
HTTPError,
NodeConnectionError,
Expand All @@ -32,7 +32,7 @@


if TYPE_CHECKING:
# My stuff
# Local
from .player import Player # type: ignore


Expand Down
2 changes: 1 addition & 1 deletion slate/objects/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Future
from __future__ import annotations

# My stuff
# Local
from .collection import *
from .enums import *
from .events import *
Expand Down
2 changes: 1 addition & 1 deletion slate/objects/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import discord
from discord.ext import commands

# My stuff
# Local
from .enums import Source
from .track import Track

Expand Down
6 changes: 3 additions & 3 deletions slate/objects/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class Provider(Enum):


class QueueLoopMode(Enum):
OFF = 0
CURRENT = 1
QUEUE = 2
DISABLED = 0
ALL = 1
CURRENT = 2


class Source(Enum):
Expand Down
2 changes: 1 addition & 1 deletion slate/objects/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Standard Library
from typing import Any, Literal

# My stuff
# Local
from ..utils import MISSING


Expand Down
2 changes: 1 addition & 1 deletion slate/objects/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import spotipy
from discord.ext import commands

# My stuff
# Local
from .collection import Collection
from .enums import Source
from .track import Track
Expand Down
2 changes: 1 addition & 1 deletion slate/objects/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import discord
from discord.ext import commands

# My stuff
# Local
from .enums import Source


Expand Down
9 changes: 5 additions & 4 deletions slate/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import discord
from discord.ext import commands

# My stuff
# Local
from .objects.enums import Provider
from .objects.events import TrackEnd, TrackException, TrackStart, TrackStuck, WebsocketClosed, WebsocketOpen
from .objects.filters import Filter
Expand All @@ -20,11 +20,12 @@


if TYPE_CHECKING:
# My stuff
from .node import Node

# Packages
import discord.types.voice

# Local
from .node import Node


__all__ = (
"Player",
Expand Down
4 changes: 2 additions & 2 deletions slate/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
import discord
from discord.ext import commands

# My stuff
# Local
from .exceptions import NodeCreationError, NodeNotFound, NoNodesConnected
from .node import Node
from .objects.enums import Provider
from .types import JSONDumps, JSONLoads


if TYPE_CHECKING:
# My stuff
# Local
from .player import Player # type: ignore


Expand Down
2 changes: 1 addition & 1 deletion slate/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from collections.abc import Iterator
from typing import Any, Generic, TypeVar

# My stuff
# Local
from slate.objects.enums import QueueLoopMode


Expand Down

0 comments on commit 75aeb5b

Please sign in to comment.