aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-28 22:20:09 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit5f71fedd7213fb5873bafa9233cc28cca5690c31 (patch)
treeb94a6b3698c51b4445df27324a9598d2d1319ad7 /typings
parent7ab59b24a43b1219aac5caba59188934bdf69e09 (diff)
downloadwee-slack-5f71fedd7213fb5873bafa9233cc28cca5690c31.tar.gz
Fix compatibility with Python 3.7
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_bots_info.pyi4
-rw-r--r--typings/slack_api/slack_conversations_history.pyi4
-rw-r--r--typings/slack_api/slack_conversations_info.pyi3
-rw-r--r--typings/slack_api/slack_error.pyi2
-rw-r--r--typings/slack_api/slack_rtm_connect.pyi4
-rw-r--r--typings/slack_api/slack_users_conversations.pyi3
-rw-r--r--typings/slack_api/slack_users_info.pyi4
-rw-r--r--typings/slack_edgeapi/slack_users_search.pyi3
8 files changed, 14 insertions, 13 deletions
diff --git a/typings/slack_api/slack_bots_info.pyi b/typings/slack_api/slack_bots_info.pyi
index 966d097..3204649 100644
--- a/typings/slack_api/slack_bots_info.pyi
+++ b/typings/slack_api/slack_bots_info.pyi
@@ -1,7 +1,7 @@
-from typing import Dict, List, Literal, TypedDict, final
+from typing import Dict, List
from slack_api.slack_error import SlackErrorResponse
-from typing_extensions import NotRequired
+from typing_extensions import Literal, NotRequired, TypedDict, final
class SlackBotInfo(TypedDict):
id: str
diff --git a/typings/slack_api/slack_conversations_history.pyi b/typings/slack_api/slack_conversations_history.pyi
index c50c038..9a12214 100644
--- a/typings/slack_api/slack_conversations_history.pyi
+++ b/typings/slack_api/slack_conversations_history.pyi
@@ -1,9 +1,9 @@
from __future__ import annotations
-from typing import Dict, List, Literal, TypedDict, final
+from typing import Dict, List
from slack_api.slack_error import SlackErrorResponse
-from typing_extensions import NotRequired
+from typing_extensions import Literal, NotRequired, TypedDict, final
@final
class SlackMessageBlockElement(TypedDict):
diff --git a/typings/slack_api/slack_conversations_info.pyi b/typings/slack_api/slack_conversations_info.pyi
index 0c0a74c..9dc721b 100644
--- a/typings/slack_api/slack_conversations_info.pyi
+++ b/typings/slack_api/slack_conversations_info.pyi
@@ -1,9 +1,10 @@
from __future__ import annotations
-from typing import Generic, List, Literal, TypedDict, TypeVar, final
+from typing import Generic, List
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_error.pyi b/typings/slack_api/slack_error.pyi
index 0c84bfc..9e8791d 100644
--- a/typings/slack_api/slack_error.pyi
+++ b/typings/slack_api/slack_error.pyi
@@ -1,4 +1,4 @@
-from typing import Literal, TypedDict, final
+from typing_extensions import Literal, TypedDict, final
@final
class SlackErrorResponse(TypedDict):
diff --git a/typings/slack_api/slack_rtm_connect.pyi b/typings/slack_api/slack_rtm_connect.pyi
index 63e23b4..34d20b9 100644
--- a/typings/slack_api/slack_rtm_connect.pyi
+++ b/typings/slack_api/slack_rtm_connect.pyi
@@ -1,9 +1,7 @@
from __future__ import annotations
-from typing import Literal, TypedDict, final
-
from slack_api.slack_error import SlackErrorResponse
-from typing_extensions import NotRequired
+from typing_extensions import Literal, NotRequired, TypedDict, final
@final
class SlackRtmConnectTeam(TypedDict):
diff --git a/typings/slack_api/slack_users_conversations.pyi b/typings/slack_api/slack_users_conversations.pyi
index 5bfbe62..6c02bca 100644
--- a/typings/slack_api/slack_users_conversations.pyi
+++ b/typings/slack_api/slack_users_conversations.pyi
@@ -1,8 +1,9 @@
from __future__ import annotations
-from typing import Generic, List, Literal, TypedDict, TypeVar, final
+from typing import Generic, List
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_users_info.pyi b/typings/slack_api/slack_users_info.pyi
index 20ba3d1..666c11f 100644
--- a/typings/slack_api/slack_users_info.pyi
+++ b/typings/slack_api/slack_users_info.pyi
@@ -1,9 +1,9 @@
from __future__ import annotations
-from typing import Dict, Generic, List, Literal, Optional, TypedDict, TypeVar, final
+from typing import Dict, Generic, List, Optional
from slack_api.slack_error import SlackErrorResponse
-from typing_extensions import NotRequired
+from typing_extensions import Literal, NotRequired, TypedDict, TypeVar, final
T = TypeVar("T")
diff --git a/typings/slack_edgeapi/slack_users_search.pyi b/typings/slack_edgeapi/slack_users_search.pyi
index 47a9f38..42f79b0 100644
--- a/typings/slack_edgeapi/slack_users_search.pyi
+++ b/typings/slack_edgeapi/slack_users_search.pyi
@@ -1,7 +1,8 @@
-from typing import List, Literal, TypedDict
+from typing import List
from slack_api.slack_error import SlackErrorResponse
from slack_api.slack_users_info import SlackUserInfo
+from typing_extensions import Literal, TypedDict
class SlackUsersSearchSuccessResponse(TypedDict):
ok: Literal[True]