fix (LCtx): Add slots to new Context.

Also add `topggpy` requirement.
This commit is contained in:
2022-01-20 08:22:12 +02:00
parent dd85732b6c
commit 4e66e1da80
2 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ class LionContext(Context):
""" """
Subclass to allow easy attachment of custom hooks and structure to contexts. Subclass to allow easy attachment of custom hooks and structure to contexts.
""" """
__slots__ = ()
@classmethod @classmethod
def util(cls, util_func): def util(cls, util_func):
""" """
@@ -30,7 +32,7 @@ class LionContext(Context):
class Wrappable: class Wrappable:
__slots = ('_func', 'wrappers') __slots__ = ('_func', 'wrappers')
def __init__(self, func): def __init__(self, func):
self._func = func self._func = func

View File

@@ -6,3 +6,4 @@ discord.py==1.7.3
iso8601==0.1.16 iso8601==0.1.16
psycopg2==2.9.1 psycopg2==2.9.1
pytz==2021.1 pytz==2021.1
topggpy