From 21fcd41f943acc0c956eb30846b1a60301cd6c6b Mon Sep 17 00:00:00 2001 From: Yomguithereal Date: Tue, 19 Dec 2023 11:07:58 +0100 Subject: [PATCH] Adding type related conditional imports --- minet/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minet/types.py b/minet/types.py index 1a5564dab1..e03fec1732 100644 --- a/minet/types.py +++ b/minet/types.py @@ -8,9 +8,9 @@ # NOTE: yes this is repetitive, but mypy only understands this, don't ask questions... if sys.version_info >= (3, 8): - from typing import Literal + from typing import Literal, get_origin, get_type_hints, get_args else: - from typing_extensions import Literal + from typing_extensions import Literal, get_origin, get_type_hints, get_args if sys.version_info >= (3, 10): from typing import TypeGuard, Concatenate, ParamSpec