fix slots issue

This commit is contained in:
Zomatree
2021-10-23 19:58:12 +01:00
parent 34a6a9cdbc
commit c648eda8e5
4 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -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)
-1
View File
@@ -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
-2
View File
@@ -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]
+1 -1
View File
@@ -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",