Fix Annotated import error (#120)

fix typing

Co-authored-by: wangzy <wangziyi@pjlab.org.cn>
This commit is contained in:
BraisedPork
2024-01-31 13:35:15 +08:00
committed by GitHub
parent c7c46785bb
commit 559275daf4
2 changed files with 7 additions and 1 deletions

View File

@@ -4,7 +4,12 @@ import re
from abc import ABCMeta
from copy import deepcopy
from functools import wraps
from typing import Annotated, Callable, Optional, Type, get_args, get_origin
from typing import Callable, Optional, Type, get_args, get_origin
try:
from typing import Annotated
except ImportError:
from typing_extensions import Annotated
from class_registry import AutoRegister, ClassRegistry
from griffe import Docstring

View File

@@ -9,3 +9,4 @@ jupyter
jupyter_client
json5
pillow
typing-extensions