aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--slack/error.py2
-rw-r--r--typings/slack_api/slack_bots_info.pyi2
-rw-r--r--typings/slack_api/slack_common.pyi7
-rw-r--r--typings/slack_api/slack_conversations_history.pyi2
-rw-r--r--typings/slack_api/slack_conversations_info.pyi2
-rw-r--r--typings/slack_api/slack_conversations_members.pyi3
-rw-r--r--typings/slack_api/slack_error.pyi6
-rw-r--r--typings/slack_api/slack_rtm_connect.pyi2
-rw-r--r--typings/slack_api/slack_usergroups_info.pyi2
-rw-r--r--typings/slack_api/slack_users_conversations.pyi3
-rw-r--r--typings/slack_api/slack_users_info.pyi2
-rw-r--r--typings/slack_edgeapi/slack_usergroups_info.pyi2
-rw-r--r--typings/slack_edgeapi/slack_users_search.pyi2
13 files changed, 17 insertions, 20 deletions
diff --git a/slack/error.py b/slack/error.py
index ed42ca8..a92626d 100644
--- a/slack/error.py
+++ b/slack/error.py
@@ -3,7 +3,7 @@ from __future__ import annotations
from typing import TYPE_CHECKING, Dict, Mapping, Sequence, Union
if TYPE_CHECKING:
- from slack_api.slack_error import SlackErrorResponse
+ from slack_api.slack_common import SlackErrorResponse
from slack.slack_workspace import SlackWorkspace
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")
diff --git a/typings/slack_edgeapi/slack_usergroups_info.pyi b/typings/slack_edgeapi/slack_usergroups_info.pyi
index 06bbb4a..7e4e078 100644
--- a/typings/slack_edgeapi/slack_usergroups_info.pyi
+++ b/typings/slack_edgeapi/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 slack_api.slack_usergroups_info import SlackUsergroupInfo
from typing_extensions import Literal, NotRequired, TypedDict
diff --git a/typings/slack_edgeapi/slack_users_search.pyi b/typings/slack_edgeapi/slack_users_search.pyi
index 42f79b0..a8c8d73 100644
--- a/typings/slack_edgeapi/slack_users_search.pyi
+++ b/typings/slack_edgeapi/slack_users_search.pyi
@@ -1,6 +1,6 @@
from typing import List
-from slack_api.slack_error import SlackErrorResponse
+from slack_api.slack_common import SlackErrorResponse
from slack_api.slack_users_info import SlackUserInfo
from typing_extensions import Literal, TypedDict