Skip to content

Fix signature for sqlite3.fetchmany #1444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions stdlib/2/sqlite3/dbapi2.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Filip Hron <filip.hron@gmail.com>
# based heavily on Andrey Vlasovskikh's python-skeletons https://github.com/JetBrains/python-skeletons/blob/master/sqlite3.py

from typing import Any, Union, List, Iterator
from numbers import Integral
from typing import Any, Union, List, Iterator, Optional
from datetime import time, datetime
from collections import Iterable

Expand Down Expand Up @@ -141,7 +140,7 @@ class Cursor(Iterator[Any]):
def executemany(self, sql: str, seq_of_parameters: Iterable[Iterable]): ...
def executescript(self, sql_script: Union[bytes, unicode]) -> Cursor: ...
def fetchall(self) -> List[Any]: ...
def fetchmany(self, size: Integral = ...) -> List[Any]: ...
def fetchmany(self, size: Optional[int] = ...) -> List[Any]: ...
def fetchone(self) -> Any: ...
def setinputsizes(self, *args, **kwargs): ...
def setoutputsize(self, *args, **kwargs): ...
Expand Down
3 changes: 1 addition & 2 deletions stdlib/3/sqlite3/dbapi2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import sys
from typing import Any, Union, List, Iterator, Optional, TypeVar, Callable
from numbers import Integral
from datetime import time, datetime
from collections import Iterable

Expand Down Expand Up @@ -141,7 +140,7 @@ class Cursor(Iterator[Any]):
def executemany(self, sql: str, seq_of_parameters: Iterable[Iterable]): ...
def executescript(self, sql_script: Union[bytes, str]) -> Cursor: ...
def fetchall(self) -> List[Any]: ...
def fetchmany(self, size: Integral = ...) -> List[Any]: ...
def fetchmany(self, size: Optional[int] = ...) -> List[Any]: ...
def fetchone(self) -> Any: ...
def setinputsizes(self, *args, **kwargs): ...
def setoutputsize(self, *args, **kwargs): ...
Expand Down
2 changes: 1 addition & 1 deletion third_party/2/pymssql.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Cursor(object):
def executemany(self, stmt: str,
params: Optional[Sequence[Tuple[Scalar, ...]]]) -> None: ...
def fetchall(self) -> List[Result]: ...
def fetchmany(self, size: Optional[Union[int, None]]) -> List[Result]: ...
def fetchmany(self, size: Optional[int]) -> List[Result]: ...
def fetchone(self) -> Result: ...

def connect(server: Optional[str],
Expand Down