提交 46bf299e 编写于 作者: J Javier

Adjusted wdtypes to the fact that we do not support 3.7 anymore

上级 775de224
......@@ -7,6 +7,7 @@ from typing import (
Match,
Tuple,
Union,
Literal,
Callable,
Iterable,
Iterator,
......@@ -16,16 +17,6 @@ from typing import (
)
from pathlib import PosixPath
# isort: off
if sys.version_info >= (3, 8):
from typing import Literal
else:
try:
from typing_extensions import Literal
except ModuleNotFoundError:
pass
# isort: on
from torch import Tensor
from torch.nn import Module
from torch.optim.optimizer import Optimizer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册