We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cff2f8 commit 05a7c0cCopy full SHA for 05a7c0c
1 file changed
pgvector/sparsevec.py
@@ -51,7 +51,7 @@ def __repr__(self) -> str:
51
52
def __eq__(self, other: object) -> bool:
53
if isinstance(other, self.__class__):
54
- return self.dimensions() == other.dimensions() and self.indices() == other.indices() and self.values() == other.values()
+ return self._dim == other._dim and self._indices == other._indices and self._values == other._values
55
return False
56
57
def dimensions(self) -> int:
0 commit comments