Add defaults for third-party stubs A-D (#9952)

This commit is contained in:
Alex Waygood
2023-03-27 16:49:58 +01:00
committed by GitHub
parent ce5f02fcdc
commit b9fedd20ce
186 changed files with 1829 additions and 1760 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ class Annoy:
def load(self, fn: str, prefault: bool = ...) -> Literal[True]: ...
def save(self, fn: str, prefault: bool = ...) -> Literal[True]: ...
@overload
def get_nns_by_item(self, i: int, n: int, search_k: int = ..., include_distances: Literal[False] = ...) -> list[int]: ...
def get_nns_by_item(self, i: int, n: int, search_k: int = ..., include_distances: Literal[False] = False) -> list[int]: ...
@overload
def get_nns_by_item(
self, i: int, n: int, search_k: int, include_distances: Literal[True]
@@ -21,7 +21,7 @@ class Annoy:
) -> tuple[list[int], list[float]]: ...
@overload
def get_nns_by_vector(
self, vector: _Vector, n: int, search_k: int = ..., include_distances: Literal[False] = ...
self, vector: _Vector, n: int, search_k: int = ..., include_distances: Literal[False] = False
) -> list[int]: ...
@overload
def get_nns_by_vector(