We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cf5ca5 commit 1451cc6Copy full SHA for 1451cc6
pgvector/utils/sparsevec.py
@@ -6,7 +6,7 @@
6
7
class SparseVector:
8
def __init__(self, value, dimensions=NO_DEFAULT, /):
9
- if value.__class__.__module__ == 'scipy.sparse._arrays':
+ if value.__class__.__module__.startswith('scipy.sparse.'):
10
if dimensions is not NO_DEFAULT:
11
raise ValueError('dimensions not allowed')
12
0 commit comments