mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
refactor: Clean up imports in settings_commands.py
- Remove unused imports (Union, List) - Add redbot.core.commands import - Move core.settings import to top of local imports - Group imports by standard library, discord, and local modules - Improve import organization for better readability
This commit is contained in:
@@ -1,19 +1,21 @@
|
|||||||
"""Module for settings-related commands"""
|
"""Module for settings-related commands"""
|
||||||
|
|
||||||
import discord
|
|
||||||
from redbot.core.commands import Context, hybrid_group, guild_only, admin_or_permissions
|
|
||||||
from discord import app_commands
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Optional, Any, Dict, TypedDict, Union, List
|
|
||||||
from enum import Enum, auto
|
from enum import Enum, auto
|
||||||
|
from typing import Optional, Any, Dict, TypedDict
|
||||||
|
|
||||||
|
import discord
|
||||||
|
from discord import app_commands
|
||||||
|
from redbot.core import commands
|
||||||
|
from redbot.core.commands import Context, hybrid_group, guild_only, admin_or_permissions
|
||||||
|
|
||||||
|
from ...core.settings import VideoFormat, VideoQuality
|
||||||
from ..response_handler import handle_response, ResponseType
|
from ..response_handler import handle_response, ResponseType
|
||||||
from ...utils.exceptions import (
|
from ...utils.exceptions import (
|
||||||
CommandError,
|
CommandError,
|
||||||
ErrorContext,
|
ErrorContext,
|
||||||
ErrorSeverity
|
ErrorSeverity
|
||||||
)
|
)
|
||||||
from ...core.settings import VideoFormat, VideoQuality
|
|
||||||
|
|
||||||
logger = logging.getLogger("VideoArchiver")
|
logger = logging.getLogger("VideoArchiver")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user