From 7e62d3cdb1967dd8f6f2e70aeb3bfa2f106c6238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 6 Aug 2018 18:08:17 +0300 Subject: [PATCH] Add missing sqlite3.dbapi2.Cursor return types (#2359) --- stdlib/2and3/sqlite3/dbapi2.pyi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stdlib/2and3/sqlite3/dbapi2.pyi b/stdlib/2and3/sqlite3/dbapi2.pyi index a131fc27e..bc035d707 100644 --- a/stdlib/2and3/sqlite3/dbapi2.pyi +++ b/stdlib/2and3/sqlite3/dbapi2.pyi @@ -152,16 +152,16 @@ class Cursor(Iterator[Any]): # TODO: Cursor class accepts exactly 1 argument # required type is sqlite3.Connection (which is imported as _Connection) # however, the name of the __init__ variable is unknown - def __init__(self, *args, **kwargs): ... - def close(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... + def close(self, *args, **kwargs) -> None: ... def execute(self, sql: str, parameters: Iterable = ...) -> Cursor: ... - def executemany(self, sql: str, seq_of_parameters: Iterable[Iterable]): ... + def executemany(self, sql: str, seq_of_parameters: Iterable[Iterable]) -> Cursor: ... def executescript(self, sql_script: Union[bytes, Text]) -> Cursor: ... def fetchall(self) -> List[Any]: ... def fetchmany(self, size: Optional[int] = ...) -> List[Any]: ... def fetchone(self) -> Any: ... - def setinputsizes(self, *args, **kwargs): ... - def setoutputsize(self, *args, **kwargs): ... + def setinputsizes(self, *args, **kwargs) -> None: ... + def setoutputsize(self, *args, **kwargs) -> None: ... def __iter__(self) -> Cursor: ... if sys.version_info >= (3, 0): def __next__(self) -> Any: ...