Commit b729de91 authored by mathieui's avatar mathieui
Browse files

fix: typing imports for 3.9

parent 93daf173
......@@ -3,15 +3,7 @@ from typing import Callable, List, Optional
from poezio.core.commands import CommandCore
from poezio.core.completions import CompletionCore
from poezio.plugin_manager import PluginManager
from typing_extensions import TypedDict
except ImportError:
from sys import version_info
if version_info < (3, 9):
from typing import TypedDict
from poezio.types import TypedDict
CommandDict = TypedDict(
......@@ -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 slixmpp.types import TypedDict, Literal
from poezio.types import TypedDict, Literal
import logging
"""Poezio type stuff"""
from typing import TypedDict, Literal
except ImportError:
from typing_extensions import TypedDict, Literal
__all__ = ['TypedDict', 'Literal']
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