diff options
author | mathieui <mathieui@mathieui.net> | 2021-04-11 14:05:56 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-11 16:33:53 +0200 |
commit | b729de91470d09d7bcd4956357b8192bda7a4981 (patch) | |
tree | 015d48445ae797b7cff6b7e04f56beff75f99ff2 /poezio/core | |
parent | 93daf173244e44744f1e48982f5936beb296ae0b (diff) | |
download | poezio-b729de91470d09d7bcd4956357b8192bda7a4981.tar.gz poezio-b729de91470d09d7bcd4956357b8192bda7a4981.tar.bz2 poezio-b729de91470d09d7bcd4956357b8192bda7a4981.tar.xz poezio-b729de91470d09d7bcd4956357b8192bda7a4981.zip |
fix: typing imports for 3.9
Diffstat (limited to 'poezio/core')
-rw-r--r-- | poezio/core/command_defs.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/poezio/core/command_defs.py b/poezio/core/command_defs.py index e46b83a1..28bb053c 100644 --- a/poezio/core/command_defs.py +++ b/poezio/core/command_defs.py @@ -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 - - -try: - from typing_extensions import TypedDict -except ImportError: - from sys import version_info - if version_info < (3, 9): - raise - from typing import TypedDict +from poezio.types import TypedDict CommandDict = TypedDict( |