Ruby-Cogs/referrals/abc.py
2025-05-23 02:30:00 -04:00

20 lines
426 B
Python

from abc import ABC, ABCMeta
from discord.ext.commands.cog import CogMeta
from piccolo.engine.sqlite import SQLiteEngine
from redbot.core.bot import Red
from .db.utils import DBUtils
class CompositeMetaClass(CogMeta, ABCMeta):
"""Type detection"""
class MixinMeta(ABC):
"""Type hinting"""
def __init__(self, *_args):
self.bot: Red
self.db: SQLiteEngine | None
self.db_utils: DBUtils