Skip to content

Commit

Permalink
Style Reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg authored Nov 17, 2024
1 parent b9fad52 commit 26a4dec
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lottery/apps.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from typing import Any, Dict, List, Optional, Union, cast

import discord
from redbot.core.bot import Red
from redbot.core import app_commands, commands
from redbot.core.bot import Red
from redbot.core.utils.chat_formatting import pagify

from .models import LotteryManager
from .converters import LotteryTransformer
from .views import DeputyView, LotteryEditView, InteractionSimpleMenu
from .models import LotteryManager
from .views import DeputyView, InteractionSimpleMenu, LotteryEditView


@app_commands.guild_only()
Expand Down
2 changes: 1 addition & 1 deletion lottery/converters.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import TYPE_CHECKING, Dict, List, Union, cast

import discord
from redbot.core import app_commands, commands
from redbot.core.bot import Red
from redbot.core import commands, app_commands

if TYPE_CHECKING:
from .core import Lottery
Expand Down
8 changes: 4 additions & 4 deletions lottery/core.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
from typing import Dict, Final, List, Union

from redbot.core.bot import Red
from redbot.core import commands
from redbot.core.bot import Red
from redbot.core.config import Config
from redbot.core.utils.chat_formatting import humanize_list

from .abc import CompositeMetaClass
from .apps import LotteryGroup
from .commands import Commands
from .models import LotteryManager
from .apps import LotteryGroup


class Lottery(commands.Cog, Commands, metaclass=CompositeMetaClass):
"""Make and host lotteries in your server."""

__author__: Final[List[str]] = ["inthedark.org"]
__version__: Final[str] = "0.1.0"

Expand All @@ -28,7 +28,7 @@ def __init__(self, bot: Red) -> None:

self.manager: LotteryManager = LotteryManager(self)
self.apps: LotteryGroup = LotteryGroup(self.manager)

def format_help_for_context(self, ctx: commands.Context) -> str:
pre_processed: str = super().format_help_for_context(ctx)
n: str = "\n" if "\n\n" not in pre_processed else ""
Expand Down
4 changes: 2 additions & 2 deletions lottery/models.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import random
import asyncio
import contextlib
import random
from typing import TYPE_CHECKING, Dict, Iterable, List, Protocol, Tuple, Union, cast

import discord
from redbot.core import commands
from redbot.core.config import Config
from redbot.core.utils.chat_formatting import pagify

from .utils import truncate
from .converters import RoleOrUserConverter
from .utils import truncate

if TYPE_CHECKING:
from .core import Lottery
Expand Down
2 changes: 1 addition & 1 deletion lottery/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import discord
from redbot.core.bot import Red
from redbot.core.config import Config
from redbot.core.utils.views import SimpleMenu
from redbot.core.utils.embed import randomize_color
from redbot.core.utils.views import SimpleMenu

if TYPE_CHECKING:
from .core import Lottery
Expand Down

0 comments on commit 26a4dec

Please sign in to comment.