mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-07-21 10:05:22 -04:00
Trailing comma and add missing things in __all__
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ __all__ = (
|
||||
"ChannelType",
|
||||
"PresenceType",
|
||||
"RelationshipType",
|
||||
"AssetType"
|
||||
"AssetType",
|
||||
)
|
||||
|
||||
class ChannelType(enum.Enum):
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ __all__ = (
|
||||
"HTTPError",
|
||||
"ServerError",
|
||||
"FeatureDisabled",
|
||||
"AutumnDisabled"
|
||||
"AutumnDisabled",
|
||||
)
|
||||
|
||||
class RevoltError(Exception):
|
||||
|
||||
@@ -8,11 +8,12 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
__all__ = (
|
||||
"SavedMessages"
|
||||
"DMChannel",
|
||||
"Group",
|
||||
"TextChannel",
|
||||
"VoiceChannel",
|
||||
"Channel"
|
||||
"Channel",
|
||||
)
|
||||
|
||||
class _NonceChannel(TypedDict, total=False):
|
||||
|
||||
@@ -12,9 +12,10 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
__all__ = (
|
||||
"BasePayload",
|
||||
"AuthenticatePayload",
|
||||
"ReadyEventPayload",
|
||||
"MessageEventPayload"
|
||||
"MessageEventPayload",
|
||||
)
|
||||
|
||||
class BasePayload(TypedDict):
|
||||
|
||||
@@ -11,7 +11,7 @@ __all__ = (
|
||||
"VosoFeature",
|
||||
"ApiInfo",
|
||||
"Autumn",
|
||||
"GetServerMembers"
|
||||
"GetServerMembers",
|
||||
)
|
||||
|
||||
class ApiFeature(TypedDict):
|
||||
|
||||
@@ -3,7 +3,7 @@ from typing import Literal, TypedDict, Union
|
||||
__all__ = (
|
||||
"GroupInvite",
|
||||
"ServerInvite",
|
||||
"Invite"
|
||||
"Invite",
|
||||
)
|
||||
|
||||
class GroupInvite(TypedDict):
|
||||
|
||||
@@ -2,7 +2,10 @@ from __future__ import annotations
|
||||
|
||||
from typing import TypedDict
|
||||
|
||||
__all__ = ("Role",)
|
||||
__all__ = (
|
||||
"Permission",
|
||||
"Role",
|
||||
)
|
||||
|
||||
Permission = tuple[int, int]
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ __all__ = (
|
||||
"Server",
|
||||
"BannedUser",
|
||||
"Ban",
|
||||
"ServerBans"
|
||||
"ServerBans",
|
||||
)
|
||||
|
||||
class SystemMessagesConfig(TypedDict, total=False):
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user