Skip to content

Commit ab79b72

Browse files
committed
Improved typing
1 parent 3e7d56b commit ab79b72

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pgvector/sparsevec.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ def indices(self) -> list[int]:
6464
def values(self) -> list[float]:
6565
return self._values
6666

67-
def to_coo(self) -> Any:
68-
from scipy.sparse import coo_array
69-
67+
def to_coo(self) -> coo_array:
7068
coords = ([0] * len(self._indices), self._indices)
7169
return coo_array((self._values, coords), shape=(1, self._dim))
7270

0 commit comments

Comments
 (0)