Skip to content

Commit 1451cc6

Browse files
committed
Fixed check
1 parent 0cf5ca5 commit 1451cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgvector/utils/sparsevec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class SparseVector:
88
def __init__(self, value, dimensions=NO_DEFAULT, /):
9-
if value.__class__.__module__ == 'scipy.sparse._arrays':
9+
if value.__class__.__module__.startswith('scipy.sparse.'):
1010
if dimensions is not NO_DEFAULT:
1111
raise ValueError('dimensions not allowed')
1212

0 commit comments

Comments
 (0)