fix(py): py with build-in package typing not typing_extensions (#99)
This commit is contained in:
parent
1fa15ce96b
commit
1d5aeeed1d
|
|
@ -13,10 +13,9 @@
|
|||
# limitations under the License.
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Optional, Union
|
||||
from typing import Optional, TypeVar, Union
|
||||
|
||||
import numpy as np
|
||||
from typing_extensions import TypeVar
|
||||
|
||||
# VectorType: DenseVectorType | SparseVectorType
|
||||
DenseVectorType = Union[list[float], list[int], np.ndarray]
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from abc import abstractmethod
|
||||
|
||||
from typing_extensions import Protocol, runtime_checkable
|
||||
from typing import Protocol, runtime_checkable
|
||||
|
||||
from ..common.constants import MD, DenseVectorType, SparseVectorType
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue