diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-02-01 23:44:30 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | b3eaad6f2b47763c1a2701edc40936cee2658188 (patch) | |
tree | d248aaffa715ed2eca5d6c42cbac80402a9645c7 /typings/slack_api | |
parent | 33c5891478937ceb3c1f7e72ef9cd47e6b0e1090 (diff) | |
download | wee-slack-b3eaad6f2b47763c1a2701edc40936cee2658188.tar.gz |
Move SlackErrorResponse into slack_common.pyi
Diffstat (limited to 'typings/slack_api')
-rw-r--r-- | typings/slack_api/slack_bots_info.pyi | 2 | ||||
-rw-r--r-- | typings/slack_api/slack_common.pyi | 7 | ||||
-rw-r--r-- | typings/slack_api/slack_conversations_history.pyi | 2 | ||||
-rw-r--r-- | typings/slack_api/slack_conversations_info.pyi | 2 | ||||
-rw-r--r-- | typings/slack_api/slack_conversations_members.pyi | 3 | ||||
-rw-r--r-- | typings/slack_api/slack_error.pyi | 6 | ||||
-rw-r--r-- | typings/slack_api/slack_rtm_connect.pyi | 2 | ||||
-rw-r--r-- | typings/slack_api/slack_usergroups_info.pyi | 2 | ||||
-rw-r--r-- | typings/slack_api/slack_users_conversations.pyi | 3 | ||||
-rw-r--r-- | typings/slack_api/slack_users_info.pyi | 2 |
10 files changed, 14 insertions, 17 deletions
diff --git a/typings/slack_api/slack_bots_info.pyi b/typings/slack_api/slack_bots_info.pyi index 3204649..a5f260e 100644 --- a/typings/slack_api/slack_bots_info.pyi +++ b/typings/slack_api/slack_bots_info.pyi @@ -1,6 +1,6 @@ from typing import Dict, List -from slack_api.slack_error import SlackErrorResponse +from slack_api.slack_common import SlackErrorResponse from typing_extensions import Literal, NotRequired, TypedDict, final class SlackBotInfo(TypedDict): diff --git a/typings/slack_api/slack_common.pyi b/typings/slack_api/slack_common.pyi index 4991425..33a4f76 100644 --- a/typings/slack_api/slack_common.pyi +++ b/typings/slack_api/slack_common.pyi @@ -1,4 +1,9 @@ -from typing_extensions import TypedDict, final +from typing_extensions import Literal, TypedDict, final + +@final +class SlackErrorResponse(TypedDict): + ok: Literal[False] + error: str @final class SlackResponseMetadata(TypedDict): diff --git a/typings/slack_api/slack_conversations_history.pyi b/typings/slack_api/slack_conversations_history.pyi index 9a12214..1e8634b 100644 --- a/typings/slack_api/slack_conversations_history.pyi +++ b/typings/slack_api/slack_conversations_history.pyi @@ -2,7 +2,7 @@ from __future__ import annotations from typing import Dict, List -from slack_api.slack_error import SlackErrorResponse +from slack_api.slack_common import SlackErrorResponse from typing_extensions import Literal, NotRequired, TypedDict, final @final diff --git a/typings/slack_api/slack_conversations_info.pyi b/typings/slack_api/slack_conversations_info.pyi index 9dc721b..3ad286e 100644 --- a/typings/slack_api/slack_conversations_info.pyi +++ b/typings/slack_api/slack_conversations_info.pyi @@ -2,8 +2,8 @@ from __future__ import annotations from typing import Generic, List +from slack_api.slack_common import SlackErrorResponse from slack_api.slack_conversations_history import SlackMessage -from slack_api.slack_error import SlackErrorResponse from typing_extensions import Literal, TypedDict, TypeVar, final T = TypeVar("T") diff --git a/typings/slack_api/slack_conversations_members.pyi b/typings/slack_api/slack_conversations_members.pyi index 47ed8f1..c15c158 100644 --- a/typings/slack_api/slack_conversations_members.pyi +++ b/typings/slack_api/slack_conversations_members.pyi @@ -1,7 +1,6 @@ from typing import List -from slack_api.slack_common import SlackResponseMetadata -from slack_api.slack_error import SlackErrorResponse +from slack_api.slack_common import SlackErrorResponse, SlackResponseMetadata from typing_extensions import Literal, TypedDict, final @final diff --git a/typings/slack_api/slack_error.pyi b/typings/slack_api/slack_error.pyi deleted file mode 100644 index 9e8791d..0000000 --- a/typings/slack_api/slack_error.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from typing_extensions import Literal, TypedDict, final - -@final -class SlackErrorResponse(TypedDict): - ok: Literal[False] - error: str diff --git a/typings/slack_api/slack_rtm_connect.pyi b/typings/slack_api/slack_rtm_connect.pyi index 34d20b9..fe74f5c 100644 --- a/typings/slack_api/slack_rtm_connect.pyi +++ b/typings/slack_api/slack_rtm_connect.pyi @@ -1,6 +1,6 @@ from __future__ import annotations -from slack_api.slack_error import SlackErrorResponse +from slack_api.slack_common import SlackErrorResponse from typing_extensions import Literal, NotRequired, TypedDict, final @final diff --git a/typings/slack_api/slack_usergroups_info.pyi b/typings/slack_api/slack_usergroups_info.pyi index 1894672..70bdd3e 100644 --- a/typings/slack_api/slack_usergroups_info.pyi +++ b/typings/slack_api/slack_usergroups_info.pyi @@ -1,6 +1,6 @@ from typing import List -from slack_api.slack_error import SlackErrorResponse +from slack_api.slack_common import SlackErrorResponse from typing_extensions import Literal, NotRequired, TypedDict, final class SlackUsergroupPrefs(TypedDict): diff --git a/typings/slack_api/slack_users_conversations.pyi b/typings/slack_api/slack_users_conversations.pyi index 69cd6da..391bca0 100644 --- a/typings/slack_api/slack_users_conversations.pyi +++ b/typings/slack_api/slack_users_conversations.pyi @@ -2,8 +2,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 slack_api.slack_common import SlackErrorResponse, SlackResponseMetadata from typing_extensions import Literal, TypedDict, TypeVar, final T = TypeVar("T") diff --git a/typings/slack_api/slack_users_info.pyi b/typings/slack_api/slack_users_info.pyi index 666c11f..d7ae367 100644 --- a/typings/slack_api/slack_users_info.pyi +++ b/typings/slack_api/slack_users_info.pyi @@ -2,7 +2,7 @@ from __future__ import annotations from typing import Dict, Generic, List, Optional -from slack_api.slack_error import SlackErrorResponse +from slack_api.slack_common import SlackErrorResponse from typing_extensions import Literal, NotRequired, TypedDict, TypeVar, final T = TypeVar("T") |