aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api/slack_users_conversations.pyi
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-15 18:04:51 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commitce70ee11a3e49b14a3943ca1f2eda250dc49b989 (patch)
tree7ceb7b4e1b14aa4ef48f31dfb09ec95d23c64169 /typings/slack_api/slack_users_conversations.pyi
parent51299ef5b42b75794096c4ecc10bc101dca2d400 (diff)
downloadwee-slack-ce70ee11a3e49b14a3943ca1f2eda250dc49b989.tar.gz
Combine error response types
Diffstat (limited to 'typings/slack_api/slack_users_conversations.pyi')
-rw-r--r--typings/slack_api/slack_users_conversations.pyi20
1 files changed, 8 insertions, 12 deletions
diff --git a/typings/slack_api/slack_users_conversations.pyi b/typings/slack_api/slack_users_conversations.pyi
index ec394a0..5bfbe62 100644
--- a/typings/slack_api/slack_users_conversations.pyi
+++ b/typings/slack_api/slack_users_conversations.pyi
@@ -2,6 +2,8 @@ from __future__ import annotations
from typing import Generic, List, Literal, TypedDict, TypeVar, final
+from slack_api.slack_error import SlackErrorResponse
+
T = TypeVar("T")
@final
@@ -74,11 +76,6 @@ SlackUsersConversationsNotIm = (
SlackUsersConversations = SlackUsersConversationsNotIm | SlackUsersConversationsIm
@final
-class SlackUsersConversationsErrorResponse(TypedDict):
- ok: Literal[False]
- error: str
-
-@final
class SlackResponseMetadata(TypedDict):
next_cursor: str
@@ -90,25 +87,24 @@ class SlackUsersConversationsSuccessResponse(TypedDict, Generic[T]):
SlackUsersConversationsPublicResponse = (
SlackUsersConversationsSuccessResponse[SlackUsersConversationsPublic]
- | SlackUsersConversationsErrorResponse
+ | SlackErrorResponse
)
SlackUsersConversationsPrivateResponse = (
SlackUsersConversationsSuccessResponse[SlackUsersConversationsPrivate]
- | SlackUsersConversationsErrorResponse
+ | SlackErrorResponse
)
SlackUsersConversationsMpimResponse = (
SlackUsersConversationsSuccessResponse[SlackUsersConversationsMpim]
- | SlackUsersConversationsErrorResponse
+ | SlackErrorResponse
)
SlackUsersConversationsImResponse = (
SlackUsersConversationsSuccessResponse[SlackUsersConversationsIm]
- | SlackUsersConversationsErrorResponse
+ | SlackErrorResponse
)
SlackUsersConversationsNotImResponse = (
SlackUsersConversationsSuccessResponse[SlackUsersConversationsNotIm]
- | SlackUsersConversationsErrorResponse
+ | SlackErrorResponse
)
SlackUsersConversationsResponse = (
- SlackUsersConversationsSuccessResponse[SlackUsersConversations]
- | SlackUsersConversationsErrorResponse
+ SlackUsersConversationsSuccessResponse[SlackUsersConversations] | SlackErrorResponse
)