Skip to content

Commit de81998

Browse files
authored
[PyMySQL] Add stub for SSCursor.read_next (#14670)
1 parent cb0fbd8 commit de81998

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stubs/PyMySQL/pymysql/cursors.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DictCursorMixin:
4545

4646
class SSCursor(Cursor):
4747
def __del__(self) -> None: ...
48-
def read_next(self): ...
48+
def read_next(self) -> tuple[Any, ...] | None: ...
4949
def fetchall(self) -> list[tuple[Any, ...]]: ... # type: ignore[override]
5050
def fetchall_unbuffered(self) -> Iterator[tuple[Any, ...]]: ...
5151
def scroll(self, value: int, mode: str = "relative") -> None: ...
@@ -54,3 +54,4 @@ class DictCursor(DictCursorMixin, Cursor): ... # type: ignore[misc]
5454

5555
class SSDictCursor(DictCursorMixin, SSCursor): # type: ignore[misc]
5656
def fetchall_unbuffered(self) -> Iterator[dict[str, Any]]: ... # type: ignore[override]
57+
def read_next(self) -> dict[str, Any] | None: ... # type: ignore[override]

0 commit comments

Comments
 (0)