aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_message.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-14 14:35:11 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commite28f556f476cbba7a0d70e1f145d8daa728b28be (patch)
tree787be6c0a635791772f60d43e452164cf89d75ee /slack/slack_message.py
parent7f6d7cd6029bb751732654cfd170432b0034ed03 (diff)
downloadwee-slack-e28f556f476cbba7a0d70e1f145d8daa728b28be.tar.gz
Add typing for slack conversations history
Diffstat (limited to 'slack/slack_message.py')
-rw-r--r--slack/slack_message.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/slack/slack_message.py b/slack/slack_message.py
index 0a7d9d2..abfa403 100644
--- a/slack/slack_message.py
+++ b/slack/slack_message.py
@@ -1,17 +1,19 @@
from __future__ import annotations
import re
-from typing import TYPE_CHECKING, Any, List
+from typing import TYPE_CHECKING, List
from slack.task import gather
if TYPE_CHECKING:
+ from slack_api.slack_conversations_history import SlackMessage as SlackMessageDict
+
from slack.slack_conversation import SlackConversation
from slack.slack_workspace import SlackApi, SlackWorkspace
class SlackMessage:
- def __init__(self, conversation: SlackConversation, message_json: Any):
+ def __init__(self, conversation: SlackConversation, message_json: SlackMessageDict):
self.conversation = conversation
self.ts = message_json["ts"]
self.message_json = message_json