summaryrefslogtreecommitdiff
path: root/poezio/types.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-11 14:05:56 +0200
committermathieui <mathieui@mathieui.net>2021-04-11 16:33:53 +0200
commitb729de91470d09d7bcd4956357b8192bda7a4981 (patch)
tree015d48445ae797b7cff6b7e04f56beff75f99ff2 /poezio/types.py
parent93daf173244e44744f1e48982f5936beb296ae0b (diff)
downloadpoezio-b729de91470d09d7bcd4956357b8192bda7a4981.tar.gz
poezio-b729de91470d09d7bcd4956357b8192bda7a4981.tar.bz2
poezio-b729de91470d09d7bcd4956357b8192bda7a4981.tar.xz
poezio-b729de91470d09d7bcd4956357b8192bda7a4981.zip
fix: typing imports for 3.9
Diffstat (limited to 'poezio/types.py')
-rw-r--r--poezio/types.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/poezio/types.py b/poezio/types.py
new file mode 100644
index 00000000..66ce802f
--- /dev/null
+++ b/poezio/types.py
@@ -0,0 +1,8 @@
+"""Poezio type stuff"""
+
+try:
+ from typing import TypedDict, Literal
+except ImportError:
+ from typing_extensions import TypedDict, Literal
+
+__all__ = ['TypedDict', 'Literal']