aboutsummaryrefslogtreecommitdiffstats
path: root/slack/commands.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-29 20:02:53 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit1db04ff63d4f62f88f0e56bd0233290ef7c9dd95 (patch)
treeb1bc647d2e5bf563881ce820d2376965336ab335 /slack/commands.py
parent6ca6e00bda3259d83f69d831093fe124c4c31f47 (diff)
downloadwee-slack-1db04ff63d4f62f88f0e56bd0233290ef7c9dd95.tar.gz
Replace some usages of Any with proper types
Diffstat (limited to 'slack/commands.py')
-rw-r--r--slack/commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/slack/commands.py b/slack/commands.py
index c60b420..8dfce84 100644
--- a/slack/commands.py
+++ b/slack/commands.py
@@ -4,7 +4,7 @@ import pprint
import re
from dataclasses import dataclass
from functools import wraps
-from typing import Any, Callable, Dict, List, Optional, Tuple
+from typing import Callable, Dict, List, Optional, Tuple
import weechat
@@ -19,7 +19,7 @@ from slack.slack_user import name_from_user_info_without_spaces
from slack.slack_workspace import SlackWorkspace
from slack.task import create_task
from slack.util import get_callback_name, with_color
-from slack.weechat_config import WeeChatOption
+from slack.weechat_config import WeeChatOption, WeeChatOptionTypes
commands: Dict[str, Command] = {}
@@ -164,7 +164,7 @@ def command_slack_workspace_add(
for option_name, option_value in options.items():
if hasattr(shared.workspaces[name].config, option_name):
- config_option: WeeChatOption[Any] = getattr(
+ config_option: WeeChatOption[WeeChatOptionTypes] = getattr(
shared.workspaces[name].config, option_name
)
value = "on" if option_value is None else option_value