From 5f71fedd7213fb5873bafa9233cc28cca5690c31 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sat, 28 Jan 2023 22:20:09 +0100 Subject: Fix compatibility with Python 3.7 --- slack/slack_conversation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'slack/slack_conversation.py') diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py index d078ead..a23666e 100644 --- a/slack/slack_conversation.py +++ b/slack/slack_conversation.py @@ -2,7 +2,7 @@ from __future__ import annotations import time from contextlib import contextmanager -from typing import TYPE_CHECKING, List, Literal, Optional, Union +from typing import TYPE_CHECKING, List, Optional, Union import weechat @@ -12,6 +12,8 @@ from slack.task import gather from slack.util import get_callback_name if TYPE_CHECKING: + from typing_extensions import Literal + from slack.slack_api import SlackApi from slack.slack_workspace import SlackWorkspace -- cgit