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

This commit is contained in:
Alex Waygood authored and GitHub committed 2023-03-27 16:49:58 +01:00
1 parent ce5f02fcdc
commit b9fedd20ce
186 files changed
+1829 -1760

No files matched your search

+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(