From 4e66e1da806215252668ce1c6c18bf62c7f2ebb2 Mon Sep 17 00:00:00 2001 From: Conatum Date: Thu, 20 Jan 2022 08:22:12 +0200 Subject: [PATCH] fix (LCtx): Add slots to new Context. Also add `topggpy` requirement. --- bot/LionContext.py | 4 +++- requirements.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/LionContext.py b/bot/LionContext.py index 8444c9cc..73ac83a9 100644 --- a/bot/LionContext.py +++ b/bot/LionContext.py @@ -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 diff --git a/requirements.txt b/requirements.txt index 01a8997c..c9254347 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ discord.py==1.7.3 iso8601==0.1.16 psycopg2==2.9.1 pytz==2021.1 +topggpy