diff options
Diffstat (limited to 'typings/slack_api')
-rw-r--r-- | typings/slack_api/slack_common.pyi | 5 | ||||
-rw-r--r-- | typings/slack_api/slack_conversations_members.pyi | 15 | ||||
-rw-r--r-- | typings/slack_api/slack_users_conversations.pyi | 5 |
3 files changed, 21 insertions, 4 deletions
diff --git a/typings/slack_api/slack_common.pyi b/typings/slack_api/slack_common.pyi new file mode 100644 index 0000000..4991425 --- /dev/null +++ b/typings/slack_api/slack_common.pyi @@ -0,0 +1,5 @@ +from typing_extensions import TypedDict, final + +@final +class SlackResponseMetadata(TypedDict): + next_cursor: str diff --git a/typings/slack_api/slack_conversations_members.pyi b/typings/slack_api/slack_conversations_members.pyi new file mode 100644 index 0000000..47ed8f1 --- /dev/null +++ b/typings/slack_api/slack_conversations_members.pyi @@ -0,0 +1,15 @@ +from typing import List + +from slack_api.slack_common import SlackResponseMetadata +from slack_api.slack_error import SlackErrorResponse +from typing_extensions import Literal, TypedDict, final + +@final +class SlackConversationsMembersSuccessResponse(TypedDict): + ok: Literal[True] + members: List[str] + response_metadata: SlackResponseMetadata + +SlackConversationsMembersResponse = ( + SlackConversationsMembersSuccessResponse | SlackErrorResponse +) diff --git a/typings/slack_api/slack_users_conversations.pyi b/typings/slack_api/slack_users_conversations.pyi index 6c02bca..69cd6da 100644 --- a/typings/slack_api/slack_users_conversations.pyi +++ b/typings/slack_api/slack_users_conversations.pyi @@ -3,6 +3,7 @@ from __future__ import annotations from typing import Generic, List from slack_api.slack_error import SlackErrorResponse +from slack_api.slack_common import SlackResponseMetadata from typing_extensions import Literal, TypedDict, TypeVar, final T = TypeVar("T") @@ -77,10 +78,6 @@ SlackUsersConversationsNotIm = ( SlackUsersConversations = SlackUsersConversationsNotIm | SlackUsersConversationsIm @final -class SlackResponseMetadata(TypedDict): - next_cursor: str - -@final class SlackUsersConversationsSuccessResponse(TypedDict, Generic[T]): ok: Literal[True] channels: List[T] |