aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-09-19 20:22:48 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commitcb54876b76847920689b53ac939cf85b023ded31 (patch)
treef65cc98190cdc530792adffa43088a3c2fcb37b8 /slack
parentc08113b8900f2fc91a9fa1fa7d02229478452a7a (diff)
downloadwee-slack-cb54876b76847920689b53ac939cf85b023ded31.tar.gz
Check that script loads in WeeChat in CI
Diffstat (limited to 'slack')
-rw-r--r--slack/slack_emoji.py22
1 files changed, 9 insertions, 13 deletions
diff --git a/slack/slack_emoji.py b/slack/slack_emoji.py
index e2b9b11..d6247c3 100644
--- a/slack/slack_emoji.py
+++ b/slack/slack_emoji.py
@@ -2,7 +2,7 @@ from __future__ import annotations
import json
import os
-from typing import TYPE_CHECKING, Any, Dict
+from typing import TYPE_CHECKING, Dict
import weechat
@@ -11,20 +11,16 @@ from slack.log import print_error
if TYPE_CHECKING:
from typing_extensions import NotRequired, TypedDict
-else:
- TypedDict = Any
+ class EmojiSkinVariation(TypedDict):
+ name: str
+ unicode: str
-class EmojiSkinVariation(TypedDict):
- name: str
- unicode: str
-
-
-class Emoji(TypedDict):
- aliasOf: NotRequired[str]
- name: str
- skinVariations: NotRequired[Dict[str, EmojiSkinVariation]]
- unicode: str
+ class Emoji(TypedDict):
+ aliasOf: NotRequired[str]
+ name: str
+ skinVariations: NotRequired[Dict[str, EmojiSkinVariation]]
+ unicode: str
def load_standard_emojis() -> Dict[str, Emoji]: