aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-15 02:51:03 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit0f891a587492d46ffe13ce950350ff6324b64ddf (patch)
tree42f96f50fb9cf0e6f76361cb807f5287cf5d337b /typings
parent38d2e4154b31d1a95084c53eabf09af03c323a19 (diff)
downloadwee-slack-0f891a587492d46ffe13ce950350ff6324b64ddf.tar.gz
Use display name or real name
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_users_info.pyi44
1 files changed, 24 insertions, 20 deletions
diff --git a/typings/slack_api/slack_users_info.pyi b/typings/slack_api/slack_users_info.pyi
index 433255e..59057e2 100644
--- a/typings/slack_api/slack_users_info.pyi
+++ b/typings/slack_api/slack_users_info.pyi
@@ -1,43 +1,47 @@
from __future__ import annotations
-from typing import Dict, Generic, List, Literal, TypedDict, TypeVar, final
+from typing import Dict, Generic, List, Literal, Optional, TypedDict, TypeVar, final
+
+from typing_extensions import NotRequired
T = TypeVar("T")
class SlackProfileCommon(TypedDict):
- title: str
- phone: str
- skype: str
- real_name: str
- real_name_normalized: str
- display_name: str
- display_name_normalized: str
- fields: Dict # pyright: ignore [reportMissingTypeArgument]
- status_text: str
- status_emoji: str
- status_emoji_display_info: List # pyright: ignore [reportMissingTypeArgument]
- status_expiration: int
- avatar_hash: str
+ title: NotRequired[Optional[str]]
+ phone: NotRequired[Optional[str]]
+ skype: NotRequired[Optional[str]]
+ real_name: NotRequired[Optional[str]]
+ real_name_normalized: NotRequired[Optional[str]]
+ display_name: NotRequired[Optional[str]]
+ display_name_normalized: NotRequired[Optional[str]]
+ # fields: NotRequired[Optional[Dict]] # pyright: ignore [reportMissingTypeArgument]
+ status_text: NotRequired[Optional[str]]
+ status_emoji: NotRequired[Optional[str]]
+ # status_emoji_display_info: NotRequired[
+ # Optional[List] # pyright: ignore [reportMissingTypeArgument]
+ # ]
+ status_expiration: NotRequired[Optional[int]]
+ avatar_hash: NotRequired[Optional[str]]
image_24: str
image_32: str
image_48: str
image_72: str
image_192: str
image_512: str
- status_text_canonical: str
+ status_text_canonical: NotRequired[Optional[str]]
team: str
@final
class SlackProfilePerson(SlackProfileCommon):
- email: str
+ email: NotRequired[Optional[str]]
@final
class SlackProfileBot(SlackProfileCommon):
- api_app_id: str
- always_active: bool
+ api_app_id: NotRequired[Optional[str]]
+ always_active: NotRequired[Optional[bool]]
image_original: str
- is_custom_image: bool
- bot_id: str
+ is_custom_image: NotRequired[Optional[bool]]
+ bot_id: NotRequired[Optional[str]]
image_1024: str
class SlackUsersInfoCommon(TypedDict):