|
@@ -34,6 +34,9 @@ if (sys.version_info.major == 3) & (sys.version_info.minor >= 8):
|
|
|
else:
|
|
|
# from typing_extensions import *
|
|
|
print("I have python version {}.{} and will import typing_extensions".format(sys.version_info.major, sys.version_info.minor))
|
|
|
+ from __future__ import annotations
|
|
|
+ Dict = dict
|
|
|
+ List = list
|
|
|
from typing_extensions import Callable, TypedDict,\
|
|
|
Literal, Dict, Iterable, List, Tuple, Union
|
|
|
|