rewrite: Update meta.

This commit is contained in:
2022-11-18 08:43:54 +02:00
parent 56f66ec7d4
commit ebece5256a
9 changed files with 156 additions and 70 deletions

View File

@@ -1,11 +1,14 @@
import types
import logging
from collections import namedtuple
from typing import Optional
from typing import Optional, TYPE_CHECKING
import discord
from discord.ext.commands import Context
if TYPE_CHECKING:
from .LionBot import LionBot
logger = logging.getLogger(__name__)
@@ -34,7 +37,7 @@ FlatContext = namedtuple(
)
class LionContext(Context):
class LionContext(Context['LionBot']):
"""
Represents the context a command is invoked under.