aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_rtm/slack_rtm_message.pyi4
-rw-r--r--typings/websocket.pyi1
2 files changed, 3 insertions, 2 deletions
diff --git a/typings/slack_rtm/slack_rtm_message.pyi b/typings/slack_rtm/slack_rtm_message.pyi
index 0f8d397..7eb50f1 100644
--- a/typings/slack_rtm/slack_rtm_message.pyi
+++ b/typings/slack_rtm/slack_rtm_message.pyi
@@ -8,7 +8,7 @@ from slack_api.slack_conversations_history import (
SlackMessageThreadParentSubscribed,
SlackMessageWithFiles,
)
-from typing_extensions import Literal, TypedDict, final
+from typing_extensions import Literal, NotRequired, TypedDict, final
class SlackRtmHello(TypedDict):
type: Literal["hello"]
@@ -81,7 +81,7 @@ class SlackMessageReplied(TypedDict):
class SlackUserTyping(TypedDict):
type: Literal["user_typing"]
channel: str
- thread_ts: str
+ thread_ts: NotRequired[str]
id: int
user: str
diff --git a/typings/websocket.pyi b/typings/websocket.pyi
index 0b9b769..3e5d683 100644
--- a/typings/websocket.pyi
+++ b/typings/websocket.pyi
@@ -51,6 +51,7 @@ class WebSocketConnectionClosedException(WebSocketException): ...
class WebSocket:
sock: socket
+ def send(self, payload: str, opcode: int = ABNF.OPCODE_TEXT) -> int: ...
def ping(self, payload: str = ...) -> None: ...
def recv_data(
self, control_frame: bool