Fix pylint errors due to conditional imports (#79)

This commit is contained in:
Slipstream 2025-06-14 21:52:29 -06:00 committed by GitHub
parent 2c8e426353
commit f1ca18a62a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,51 +18,23 @@ from typing import (
if TYPE_CHECKING:
from disagreement.client import Client
from disagreement.interactions import Interaction, ResolvedData, Snowflake
from disagreement.enums import (
ApplicationCommandType,
ApplicationCommandOptionType,
InteractionType,
)
from .commands import (
AppCommand,
SlashCommand,
UserCommand,
MessageCommand,
AppCommandGroup,
)
from .context import AppCommandContext
from disagreement.models import (
User,
Member,
Role,
Attachment,
Message,
) # For resolved data
# Channel models would also go here
from disagreement.enums import (
ApplicationCommandType,
ApplicationCommandOptionType,
InteractionType,
)
from .commands import (
AppCommand,
SlashCommand,
UserCommand,
MessageCommand,
AppCommandGroup,
)
from .context import AppCommandContext
from disagreement.models import User, Member, Role, Attachment, Message
# Placeholder for models not yet fully defined or imported
if not TYPE_CHECKING:
from disagreement.enums import (
ApplicationCommandType,
ApplicationCommandOptionType,
InteractionType,
)
from .commands import (
AppCommand,
SlashCommand,
UserCommand,
MessageCommand,
AppCommandGroup,
)
from .context import AppCommandContext
User = Any
Member = Any
Role = Any
Attachment = Any
Channel = Any
Message = Any
Channel = Any
logger = logging.getLogger(__name__)