fix (LCtx): Add slots to new Context.
Also add `topggpy` requirement.
This commit is contained in:
@@ -8,6 +8,8 @@ class LionContext(Context):
|
||||
"""
|
||||
Subclass to allow easy attachment of custom hooks and structure to contexts.
|
||||
"""
|
||||
__slots__ = ()
|
||||
|
||||
@classmethod
|
||||
def util(cls, util_func):
|
||||
"""
|
||||
@@ -30,7 +32,7 @@ class LionContext(Context):
|
||||
|
||||
|
||||
class Wrappable:
|
||||
__slots = ('_func', 'wrappers')
|
||||
__slots__ = ('_func', 'wrappers')
|
||||
|
||||
def __init__(self, func):
|
||||
self._func = func
|
||||
|
||||
@@ -6,3 +6,4 @@ discord.py==1.7.3
|
||||
iso8601==0.1.16
|
||||
psycopg2==2.9.1
|
||||
pytz==2021.1
|
||||
topggpy
|
||||
|
||||
Reference in New Issue
Block a user