compatibility with Python 3.7

This commit is contained in:
Xavier Olive
2022-11-01 20:38:29 +09:00
parent 51222372b1
commit 9d82f9b9c9
2 changed files with 8 additions and 2 deletions

View File

@@ -4,7 +4,12 @@
from __future__ import annotations
from typing import TypedDict
import sys
if sys.version_info < (3, 8):
from typing_extensions import TypedDict
else:
from typing import TypedDict
NA = None