Correct type annotation
This commit is contained in:
parent
810a9d99cb
commit
9a3482eabb
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import sys
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
from typing import Dict, Optional, List, Iterable
|
from typing import Dict, Optional, List, Iterable, Tuple
|
||||||
import re
|
import re
|
||||||
from time import sleep
|
from time import sleep
|
||||||
import threading
|
import threading
|
||||||
|
@ -158,7 +158,7 @@ def resolve_channel(mm_api: mattermost.MMApi, team_id: str, query: str) -> Optio
|
||||||
return joined_channel_result
|
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("/")
|
query_parts = query.split("/")
|
||||||
del query
|
del query
|
||||||
if len(query_parts) != 2:
|
if len(query_parts) != 2:
|
||||||
|
|
Loading…
Reference in a new issue