feat(aurora): starting work on the config rewrite
This commit is contained in:
parent
a1b038057e
commit
c42b4eca2d
9 changed files with 192 additions and 325 deletions
28
aurora/abc.py
Normal file
28
aurora/abc.py
Normal file
|
@ -0,0 +1,28 @@
|
|||
from abc import ABC
|
||||
|
||||
from redbot.core import commands
|
||||
from redbot.core.bot import Red
|
||||
|
||||
from .utilities.config import Config
|
||||
|
||||
|
||||
class CompositeMetaClass(type(commands.Cog), type(ABC)):
|
||||
"""
|
||||
This allows the metaclass used for proper type detection to
|
||||
coexist with discord.py's metaclass
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class Mixin(ABC):
|
||||
"""
|
||||
Base class for well behaved type hint detection with composite class.
|
||||
|
||||
Basically, to keep developers sane when not all attributes are defined in each mixin.
|
||||
"""
|
||||
|
||||
def __init__(self, *_args):
|
||||
super().__init__()
|
||||
self.config: Config
|
||||
self.bot: Red
|
Loading…
Add table
Add a link
Reference in a new issue