aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-15 18:07:47 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit7a57687d9e6724e78f45755b0206f739c504606d (patch)
tree160b82334449c2fa25d1a3d41c0125df6a71910a /typings
parentce70ee11a3e49b14a3943ca1f2eda250dc49b989 (diff)
downloadwee-slack-7a57687d9e6724e78f45755b0206f739c504606d.tar.gz
Add missing final decorators
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_rtm_connect.pyi5
-rw-r--r--typings/slack_api/slack_users_info.pyi3
2 files changed, 7 insertions, 1 deletions
diff --git a/typings/slack_api/slack_rtm_connect.pyi b/typings/slack_api/slack_rtm_connect.pyi
index c499426..e5dcd8c 100644
--- a/typings/slack_api/slack_rtm_connect.pyi
+++ b/typings/slack_api/slack_rtm_connect.pyi
@@ -1,18 +1,21 @@
from __future__ import annotations
-from typing import Literal, TypedDict
+from typing import Literal, TypedDict, final
from slack_api.slack_error import SlackErrorResponse
+@final
class SlackRtmConnectTeam(TypedDict):
id: str
name: str
domain: str
+@final
class SlackRtmConnectSelf(TypedDict):
id: str
name: str
+@final
class SlackRtmConnectSuccessResponse(TypedDict):
ok: Literal[True]
url: str
diff --git a/typings/slack_api/slack_users_info.pyi b/typings/slack_api/slack_users_info.pyi
index 086dbb4..ab43378 100644
--- a/typings/slack_api/slack_users_info.pyi
+++ b/typings/slack_api/slack_users_info.pyi
@@ -7,10 +7,12 @@ from typing_extensions import NotRequired
T = TypeVar("T")
+@final
class SlackProfileField(TypedDict):
value: str
alt: str
+@final
class SlackProfileStatusEmojiDisplayInfo(TypedDict):
emoji_name: str
display_url: str
@@ -61,6 +63,7 @@ class SlackProfileBot(SlackProfileCommon):
SlackProfile = SlackProfilePerson | SlackProfileBot
+@final
class SlackEnterpriseUser(TypedDict):
id: str
enterprise_id: str