From fdfd96e2246924d17c0672f0a0ddaf53dcdd4ceb Mon Sep 17 00:00:00 2001 From: ppotatoo <76911441+ppotatoo@users.noreply.github.com> Date: Thu, 2 Sep 2021 15:23:01 -0400 Subject: [PATCH] Trailing comma and add missing things in __all__ --- revolt/enums.py | 2 +- revolt/errors.py | 2 +- revolt/types/channel.py | 3 ++- revolt/types/gateway.py | 3 ++- revolt/types/http.py | 2 +- revolt/types/invite.py | 2 +- revolt/types/role.py | 5 ++++- revolt/types/server.py | 2 +- revolt/types/user.py | 3 ++- 9 files changed, 15 insertions(+), 9 deletions(-) diff --git a/revolt/enums.py b/revolt/enums.py index a809e26..eb4fd27 100644 --- a/revolt/enums.py +++ b/revolt/enums.py @@ -12,7 +12,7 @@ __all__ = ( "ChannelType", "PresenceType", "RelationshipType", - "AssetType" + "AssetType", ) class ChannelType(enum.Enum): diff --git a/revolt/errors.py b/revolt/errors.py index e342807..a241b3b 100644 --- a/revolt/errors.py +++ b/revolt/errors.py @@ -3,7 +3,7 @@ __all__ = ( "HTTPError", "ServerError", "FeatureDisabled", - "AutumnDisabled" + "AutumnDisabled", ) class RevoltError(Exception): diff --git a/revolt/types/channel.py b/revolt/types/channel.py index 14c3de9..b60a647 100644 --- a/revolt/types/channel.py +++ b/revolt/types/channel.py @@ -8,11 +8,12 @@ if TYPE_CHECKING: __all__ = ( + "SavedMessages" "DMChannel", "Group", "TextChannel", "VoiceChannel", - "Channel" + "Channel", ) class _NonceChannel(TypedDict, total=False): diff --git a/revolt/types/gateway.py b/revolt/types/gateway.py index 5a7cf5b..454353d 100644 --- a/revolt/types/gateway.py +++ b/revolt/types/gateway.py @@ -12,9 +12,10 @@ if TYPE_CHECKING: __all__ = ( + "BasePayload", "AuthenticatePayload", "ReadyEventPayload", - "MessageEventPayload" + "MessageEventPayload", ) class BasePayload(TypedDict): diff --git a/revolt/types/http.py b/revolt/types/http.py index c79ee59..b21082f 100644 --- a/revolt/types/http.py +++ b/revolt/types/http.py @@ -11,7 +11,7 @@ __all__ = ( "VosoFeature", "ApiInfo", "Autumn", - "GetServerMembers" + "GetServerMembers", ) class ApiFeature(TypedDict): diff --git a/revolt/types/invite.py b/revolt/types/invite.py index aa1d8d3..23756e7 100644 --- a/revolt/types/invite.py +++ b/revolt/types/invite.py @@ -3,7 +3,7 @@ from typing import Literal, TypedDict, Union __all__ = ( "GroupInvite", "ServerInvite", - "Invite" + "Invite", ) class GroupInvite(TypedDict): diff --git a/revolt/types/role.py b/revolt/types/role.py index 1618237..50aa1c6 100644 --- a/revolt/types/role.py +++ b/revolt/types/role.py @@ -2,7 +2,10 @@ from __future__ import annotations from typing import TypedDict -__all__ = ("Role",) +__all__ = ( + "Permission", + "Role", +) Permission = tuple[int, int] diff --git a/revolt/types/server.py b/revolt/types/server.py index 7292694..68c1a37 100644 --- a/revolt/types/server.py +++ b/revolt/types/server.py @@ -12,7 +12,7 @@ __all__ = ( "Server", "BannedUser", "Ban", - "ServerBans" + "ServerBans", ) class SystemMessagesConfig(TypedDict, total=False): diff --git a/revolt/types/user.py b/revolt/types/user.py index 68f35e9..29e57ca 100644 --- a/revolt/types/user.py +++ b/revolt/types/user.py @@ -6,11 +6,12 @@ if TYPE_CHECKING: from .file import File __all__ = ( + "UserRelation", "Relation", "UserBot", "Status", "User", - "UserProfile" + "UserProfile", ) Relation = Literal["Blocked", "BlockedOther", "Friend", "Incoming", "None", "Outgoing", "User"]