mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-24 09:18:40 +08:00
Add defaults for third-party stubs A-D (#9952)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user