From 9a3482eabb3fddd9649c3824a2252ca59ec468f3 Mon Sep 17 00:00:00 2001 From: Midgard Date: Mon, 20 May 2024 12:53:02 +0200 Subject: [PATCH] Correct type annotation --- mmcli/mmcli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmcli/mmcli.py b/mmcli/mmcli.py index e22047b..0ee2d12 100755 --- a/mmcli/mmcli.py +++ b/mmcli/mmcli.py @@ -4,7 +4,7 @@ import sys import argparse import os import json -from typing import Dict, Optional, List, Iterable +from typing import Dict, Optional, List, Iterable, Tuple import re from time import sleep import threading @@ -158,7 +158,7 @@ def resolve_channel(mm_api: mattermost.MMApi, team_id: str, query: str) -> Optio return joined_channel_result -def resolve_team_channel(mm_api: mattermost.MMApi, query: str) -> Dict: +def resolve_team_channel(mm_api: mattermost.MMApi, query: str) -> Tuple[Dict, Dict]: query_parts = query.split("/") del query if len(query_parts) != 2: