Skip to content

Commit

Permalink
Fix generic type in pynndescent
Browse files Browse the repository at this point in the history
  • Loading branch information
stephantul committed Nov 13, 2024
1 parent c4061b0 commit 21912f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vicinity/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def dict(self) -> dict[str, Any]:


class AbstractBackend(ABC, Generic[ArgType]):
argument_class: type[BaseArgs]
argument_class: type[ArgType]

def __init__(self, arguments: ArgType, *args: Any, **kwargs: Any) -> None:
"""Initialize the backend with vectors."""
Expand Down
2 changes: 1 addition & 1 deletion vicinity/backends/pynndescent.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PyNNDescentArgs(BaseArgs):
] = "cosine"


class PyNNDescentBackend(AbstractBackend):
class PyNNDescentBackend(AbstractBackend[PyNNDescentArgs]):
argument_class = PyNNDescentArgs

def __init__(
Expand Down

0 comments on commit 21912f2

Please sign in to comment.