Skip to content

Commit c892874

Browse files
committed
Improved typing [skip ci]
1 parent ab79b72 commit c892874

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

pgvector/sparsevec.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ def __init__(self, value: dict[int, float], dimensions: int, /) -> None:
2222
...
2323

2424
@overload
25-
def __init__(self, value: list[float] | np.ndarray[tuple[int], np.dtype[np.floating]], /) -> None:
26-
...
27-
28-
@overload
29-
def __init__(self, value: sparray | spmatrix, /) -> None:
25+
def __init__(self, value: list[float] | np.ndarray[tuple[int], np.dtype[np.floating]] | sparray | spmatrix, /) -> None:
3026
...
3127

3228
def __init__(self, value: dict[int, float] | list[float] | np.ndarray[tuple[int], np.dtype[np.floating]] | sparray | spmatrix, dimensions: int | Any = NO_DEFAULT, /) -> None:

0 commit comments

Comments
 (0)