From c648eda8e58c540ec5033dfd5e1af706301f7c95 Mon Sep 17 00:00:00 2001 From: Zomatree Date: Sat, 23 Oct 2021 19:58:12 +0100 Subject: [PATCH] fix slots issue --- revolt/__init__.py | 2 +- revolt/client.py | 1 - revolt/ext/commands/mixin.py | 2 -- setup.py | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/revolt/__init__.py b/revolt/__init__.py index 82d1c8a..2bd5078 100755 --- a/revolt/__init__.py +++ b/revolt/__init__.py @@ -15,4 +15,4 @@ from .role import Role from .server import Server from .user import Relation, Status, User -__version__ = (0, 1, 0) +__version__ = (0, 1, 1) diff --git a/revolt/client.py b/revolt/client.py index 54b6818..59fd16e 100755 --- a/revolt/client.py +++ b/revolt/client.py @@ -40,7 +40,6 @@ class Client: max_messages: :class:`int` The max amount of messages stored in the cache, by default this is 5k """ - __slots__ = ("session", "token", "api_url", "max_messages", "api_info", "http", "state", "websocket", "listeners") def __init__(self, session: aiohttp.ClientSession, token: str, api_url: str = "https://api.revolt.chat", max_messages: int = 5000): self.session = session diff --git a/revolt/ext/commands/mixin.py b/revolt/ext/commands/mixin.py index f425e51..5a8a8ab 100755 --- a/revolt/ext/commands/mixin.py +++ b/revolt/ext/commands/mixin.py @@ -34,8 +34,6 @@ class CommandsMeta(type): class CommandsMixin(metaclass=CommandsMeta): """Main class that adds commands, this class should be subclassed along with `revolt.Client`.""" - __slots__ = ("_commands", "all_commands") - _commands: list[Command] dispatch: Callable[..., None] diff --git a/setup.py b/setup.py index 9c95e2c..a55711c 100755 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ long_description = (here / "README.md").read_text(encoding="utf-8") setup( name="revolt.py", - version="0.1.0", + version="0.1.1", description="Python wrapper around revolt.chat", long_description=long_description, long_description_content_type="text/markdown",