Skip to content

Commit 1d5aeee

Browse files
authored
fix(py): py with build-in package typing not typing_extensions (#99)
1 parent 1fa15ce commit 1d5aeee

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

python/zvec/common/constants.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
# limitations under the License.
1414
from __future__ import annotations
1515

16-
from typing import Optional, Union
16+
from typing import Optional, TypeVar, Union
1717

1818
import numpy as np
19-
from typing_extensions import TypeVar
2019

2120
# VectorType: DenseVectorType | SparseVectorType
2221
DenseVectorType = Union[list[float], list[int], np.ndarray]

python/zvec/extension/embedding_function.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
from __future__ import annotations
1515

1616
from abc import abstractmethod
17-
18-
from typing_extensions import Protocol, runtime_checkable
17+
from typing import Protocol, runtime_checkable
1918

2019
from ..common.constants import MD, DenseVectorType, SparseVectorType
2120

0 commit comments

Comments
 (0)