Commit b2c846f9 authored by mathieui's avatar mathieui

Use typing_extensions for TypedDict

parent 233d6d22
Pipeline #3591 passed with stages
in 4 minutes and 55 seconds
from typing import Callable, List
from poezio.core.commands import CommandCore from poezio.core.commands import CommandCore
from poezio.core.completions import CompletionCore from poezio.core.completions import CompletionCore
from poezio.plugin_manager import PluginManager from poezio.plugin_manager import PluginManager
from typing import TypedDict, Callable, List
try:
from typing_extensions import TypedDict
except ImportError:
from sys import version_info
if version_info < (3, 9):
raise
from typing import TypedDict
CommandDict = TypedDict( CommandDict = TypedDict(
"CommandDict", "CommandDict",
......
...@@ -4,3 +4,4 @@ aiodns==1.1.1 ...@@ -4,3 +4,4 @@ aiodns==1.1.1
pycares==2.3.0 pycares==2.3.0
pyasn1==0.4.2 pyasn1==0.4.2
pyasn1-modules==0.2.1 pyasn1-modules==0.2.1
typing_extensions
...@@ -165,7 +165,7 @@ setup( ...@@ -165,7 +165,7 @@ setup(
+ find_doc('share/doc/poezio/html', 'build/html') + find_doc('share/doc/poezio/html', 'build/html')
+ sphinx_files_found + sphinx_files_found
), ),
install_requires=['slixmpp>=1.6.0', 'aiodns', 'pyasn1_modules', 'pyasn1'], install_requires=['slixmpp>=1.6.0', 'aiodns', 'pyasn1_modules', 'pyasn1', 'typing_extensions'],
extras_require={'OTR plugin': 'python-potr>=1.0', extras_require={'OTR plugin': 'python-potr>=1.0',
'Screen autoaway plugin': 'pyinotify==0.9.4', 'Screen autoaway plugin': 'pyinotify==0.9.4',
'Avoiding cython': 'cffi'}, 'Avoiding cython': 'cffi'},
......
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