Skip to content

Commit

Permalink
Fixed check
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 26, 2024
1 parent 0cf5ca5 commit 1451cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgvector/utils/sparsevec.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class SparseVector:
def __init__(self, value, dimensions=NO_DEFAULT, /):
if value.__class__.__module__ == 'scipy.sparse._arrays':
if value.__class__.__module__.startswith('scipy.sparse.'):
if dimensions is not NO_DEFAULT:
raise ValueError('dimensions not allowed')

Expand Down

0 comments on commit 1451cc6

Please sign in to comment.