Trailing comma and add missing things in __all__

This commit is contained in:
ppotatoo
2021-09-02 15:23:01 -04:00
parent 553fbffa74
commit fdfd96e224
9 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ __all__ = (
"ChannelType",
"PresenceType",
"RelationshipType",
"AssetType"
"AssetType",
)
class ChannelType(enum.Enum):
+1 -1
View File
@@ -3,7 +3,7 @@ __all__ = (
"HTTPError",
"ServerError",
"FeatureDisabled",
"AutumnDisabled"
"AutumnDisabled",
)
class RevoltError(Exception):
+2 -1
View File
@@ -8,11 +8,12 @@ if TYPE_CHECKING:
__all__ = (
"SavedMessages"
"DMChannel",
"Group",
"TextChannel",
"VoiceChannel",
"Channel"
"Channel",
)
class _NonceChannel(TypedDict, total=False):
+2 -1
View File
@@ -12,9 +12,10 @@ if TYPE_CHECKING:
__all__ = (
"BasePayload",
"AuthenticatePayload",
"ReadyEventPayload",
"MessageEventPayload"
"MessageEventPayload",
)
class BasePayload(TypedDict):
+1 -1
View File
@@ -11,7 +11,7 @@ __all__ = (
"VosoFeature",
"ApiInfo",
"Autumn",
"GetServerMembers"
"GetServerMembers",
)
class ApiFeature(TypedDict):
+1 -1
View File
@@ -3,7 +3,7 @@ from typing import Literal, TypedDict, Union
__all__ = (
"GroupInvite",
"ServerInvite",
"Invite"
"Invite",
)
class GroupInvite(TypedDict):
+4 -1
View File
@@ -2,7 +2,10 @@ from __future__ import annotations
from typing import TypedDict
__all__ = ("Role",)
__all__ = (
"Permission",
"Role",
)
Permission = tuple[int, int]
+1 -1
View File
@@ -12,7 +12,7 @@ __all__ = (
"Server",
"BannedUser",
"Ban",
"ServerBans"
"ServerBans",
)
class SystemMessagesConfig(TypedDict, total=False):
+2 -1
View File
@@ -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"]