Skip to content

Commit 4808799

Browse files
committed
Updated style [skip ci]
1 parent 05a7c0c commit 4808799

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

pgvector/sparsevec.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ class SparseVector:
2121
_values: list[float]
2222

2323
@overload
24-
def __init__(self, value: dict[int, float], dimensions: int, /) -> None:
25-
...
24+
def __init__(self, value: dict[int, float], dimensions: int, /) -> None: ...
2625

2726
@overload
28-
def __init__(self, value: list[float] | ndarray | sparray | spmatrix, /) -> None:
29-
...
30-
31-
def __init__(self, value: dict[int, float] | list[float] | ndarray | sparray | spmatrix, dimensions: int | Sentinel = NO_DEFAULT, /) -> None:
27+
def __init__(self, value: list[float] | ndarray | sparray | spmatrix, /) -> None: ...
28+
29+
def __init__(
30+
self,
31+
value: dict[int, float] | list[float] | ndarray | sparray | spmatrix,
32+
dimensions: int | Sentinel = NO_DEFAULT,
33+
/
34+
) -> None:
3235
if is_sparse_array(value):
3336
if dimensions is not NO_DEFAULT:
3437
raise ValueError('extra argument')

0 commit comments

Comments
 (0)