Skip to content

Commit c1df3a2

Browse files
authored
MOTOR-1420 Use generic return type for to_list() (#318)
1 parent 777d2aa commit c1df3a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

motor/core.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ class AgnosticBaseCursor(AgnosticBase, Generic[_DocumentType]):
709709
def next_object(self) -> Any: ...
710710
def each(self, callback: Callable) -> None: ...
711711
def _each_got_more(self, callback: Callable, future: Any) -> None: ...
712-
def to_list(self, length: Optional[int] = ...) -> Future[list[Any]]: ...
712+
def to_list(self, length: Optional[int] = ...) -> Future[list[_DocumentType]]: ...
713713
def _to_list(
714714
self, length: Union[int, None], the_list: list, future: Any, get_more_result: Any
715715
) -> None: ...

0 commit comments

Comments
 (0)