From b3eaad6f2b47763c1a2701edc40936cee2658188 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Wed, 1 Feb 2023 23:44:30 +0100 Subject: Move SlackErrorResponse into slack_common.pyi --- typings/slack_api/slack_bots_info.pyi | 2 +- typings/slack_api/slack_common.pyi | 7 ++++++- typings/slack_api/slack_conversations_history.pyi | 2 +- typings/slack_api/slack_conversations_info.pyi | 2 +- typings/slack_api/slack_conversations_members.pyi | 3 +-- typings/slack_api/slack_error.pyi | 6 ------ typings/slack_api/slack_rtm_connect.pyi | 2 +- typings/slack_api/slack_usergroups_info.pyi | 2 +- typings/slack_api/slack_users_conversations.pyi | 3 +-- typings/slack_api/slack_users_info.pyi | 2 +- 10 files changed, 14 insertions(+), 17 deletions(-) delete mode 100644 typings/slack_api/slack_error.pyi (limited to 'typings/slack_api') 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") -- cgit