Commit 6b2c12c1 authored by mathieui's avatar mathieui
Browse files

fix: do not use Literal

parent b729de91
......@@ -20,7 +20,7 @@ from poezio.config import config
from poezio.xhtml import clean_text
from poezio.ui.types import Message, BaseMessage, LoggableTrait
from slixmpp import JID
from poezio.types import TypedDict, Literal
from poezio.types import TypedDict
import logging
......@@ -68,7 +68,7 @@ class LogMessage(LogItem):
LogDict = TypedDict(
'LogDict',
{
'type': Literal['message', 'info'], 'txt': str, 'time': datetime,
'type': str, 'txt': str, 'time': datetime,
'history': bool, 'nickname': str
},
total=False,
......
"""Poezio type stuff"""
try:
from typing import TypedDict, Literal
from typing import TypedDict
except ImportError:
from typing_extensions import TypedDict, Literal
from typing_extensions import TypedDict
__all__ = ['TypedDict', 'Literal']
__all__ = ['TypedDict']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment